public AVSampleRateConverterSettings getSampleRateConverterSettings() { if (sampleRateConverterSettings == null) { sampleRateConverterSettings = new AVSampleRateConverterSettings(data); } return sampleRateConverterSettings; } public AVAudioSettings setSampleRateConverterSettings(AVSampleRateConverterSettings settings) {
public AVAudioSettings setSampleRateConverterSettings(AVSampleRateConverterSettings settings) { if (settings == null) { throw new NullPointerException("settings"); } this.sampleRateConverterSettings = settings; data.putAll(settings.getDictionary()); return this; }
/** * @since Available in iOS 7.0 and later. */ public AVSampleRateConverterSettings setAlgorithm(AVSampleRateConverterAlgorithm algorithm) { set(Keys.Algorithm(), algorithm.value()); return this; } public AVAudioQuality getAudioQuality() {
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public AVSampleRateConverterSettings set(NSString key, NSObject value) {
public AVSampleRateConverterSettings setAudioQuality(AVAudioQuality audioQuality) { set(Keys.AudioQuality(), NSNumber.valueOf(audioQuality.value())); return this; } /*</methods>*/
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public AVSampleRateConverterSettings set(NSString key, NSObject value) {
@MarshalsPointer public static AVSampleRateConverterSettings toObject(Class<AVSampleRateConverterSettings> cls, long handle, long flags) { NSDictionary o = (NSDictionary) NSObject.Marshaler.toObject(NSDictionary.class, handle, flags); if (o == null) { return null; } return new AVSampleRateConverterSettings(o); } @MarshalsPointer
/** * @since Available in iOS 7.0 and later. */ public AVSampleRateConverterSettings setAlgorithm(AVSampleRateConverterAlgorithm algorithm) { set(Keys.Algorithm(), algorithm.value()); return this; } public AVAudioQuality getAudioQuality() {
@MarshalsPointer public static long toNative(List<AVSampleRateConverterSettings> l, long flags) { if (l == null) { return 0L; } NSArray<NSDictionary> array = new NSMutableArray<>(); for (AVSampleRateConverterSettings i : l) { array.add(i.getDictionary()); } return NSObject.Marshaler.toNative(array, flags); } }
public NSObject get(NSString key) { if (has(key)) { return data.get(key); } return null; } public AVSampleRateConverterSettings set(NSString key, NSObject value) {
@MarshalsPointer public static List<AVSampleRateConverterSettings> toObject(Class<? extends NSObject> cls, long handle, long flags) { NSArray<NSDictionary> o = (NSArray<NSDictionary>) NSObject.Marshaler.toObject(NSArray.class, handle, flags); if (o == null) { return null; } List<AVSampleRateConverterSettings> list = new ArrayList<>(); for (int i = 0; i < o.size(); i++) { list.add(new AVSampleRateConverterSettings(o.get(i))); } return list; } @MarshalsPointer
/** * @since Available in iOS 7.0 and later. */ public AVSampleRateConverterSettings setAlgorithm(AVSampleRateConverterAlgorithm algorithm) { set(Keys.Algorithm(), algorithm.value()); return this; } public AVAudioQuality getAudioQuality() {
public AVAudioSettings setSampleRateConverterSettings(AVSampleRateConverterSettings settings) { if (settings == null) { throw new NullPointerException("settings"); } this.sampleRateConverterSettings = settings; data.putAll(settings.getDictionary()); return this; }
public AVSampleRateConverterSettings getSampleRateConverterSettings() { if (sampleRateConverterSettings == null) { sampleRateConverterSettings = new AVSampleRateConverterSettings(data); } return sampleRateConverterSettings; } public AVAudioSettings setSampleRateConverterSettings(AVSampleRateConverterSettings settings) {
public AVSampleRateConverterSettings setAudioQuality(AVAudioQuality audioQuality) { set(Keys.AudioQuality(), NSNumber.valueOf(audioQuality.value())); return this; } /*</methods>*/
public AVAudioSettings setSampleRateConverterSettings(AVSampleRateConverterSettings settings) { if (settings == null) { throw new NullPointerException("settings"); } this.sampleRateConverterSettings = settings; data.putAll(settings.getDictionary()); return this; }