InputAudioQueue.OnInputCompleted Method

Definition

Method invoked .

protected virtual void OnInputCompleted (IntPtr audioQueueBuffer, AudioToolbox.AudioTimeStamp timeStamp, AudioToolbox.AudioStreamPacketDescription[] packetDescriptions);
abstract member OnInputCompleted : nativeint * AudioToolbox.AudioTimeStamp * AudioToolbox.AudioStreamPacketDescription[] -> unit
override this.OnInputCompleted : nativeint * AudioToolbox.AudioTimeStamp * AudioToolbox.AudioStreamPacketDescription[] -> unit

Parameters

audioQueueBuffer
IntPtr

nativeint

.

timeStamp
AudioTimeStamp
packetDescriptions
AudioStreamPacketDescription[]

Remarks

This method is invoked when the audio system has completely filled one of the buffers with audio data. You would override this method to process the data, to either save the raw bytes to disk, encode them using the AudioFile or do some real-time processing with the audio packets.

If you override this method, you do not necessarily need to call base.OnInputComplete (audioQueueBuffer, timeStamp, packetDescriptions) unless you are interested in raising the C# events to potential consumers of your class.

Applies to