/** * @throws OSStatusException * @since Available in iOS 6.0 and later. */ public long getSourceAudio(long numberFrames, AudioBufferList bufferList, MTAudioProcessingTapMutableFlags flags) throws OSStatusException { CMTimeRange timeRangePtr = new CMTimeRange(); MachineSizedSIntPtr numberFramesPtr = new MachineSizedSIntPtr(); OSStatus status = getSourceAudio0(numberFrames, bufferList, flags, timeRangePtr, numberFramesPtr); OSStatusException.throwIfNecessary(status); this.lastTimeRange = timeRangePtr; return numberFramesPtr.get(); }
/** * @throws OSStatusException * @since Available in iOS 6.0 and later. */ public long getSourceAudio(long numberFrames, AudioBufferList bufferList, MTAudioProcessingTapMutableFlags flags) throws OSStatusException { CMTimeRange timeRangePtr = new CMTimeRange(); MachineSizedSIntPtr numberFramesPtr = new MachineSizedSIntPtr(); OSStatus status = getSourceAudio0(numberFrames, bufferList, flags, timeRangePtr, numberFramesPtr); OSStatusException.throwIfNecessary(status); this.lastTimeRange = timeRangePtr; return numberFramesPtr.get(); }
/** * @throws OSStatusException * @since Available in iOS 6.0 and later. */ public long getSourceAudio(long numberFrames, AudioBufferList bufferList, MTAudioProcessingTapMutableFlags flags) throws OSStatusException { CMTimeRange timeRangePtr = new CMTimeRange(); MachineSizedSIntPtr numberFramesPtr = new MachineSizedSIntPtr(); OSStatus status = getSourceAudio0(numberFrames, bufferList, flags, timeRangePtr, numberFramesPtr); OSStatusException.throwIfNecessary(status); this.lastTimeRange = timeRangePtr; return numberFramesPtr.get(); }