iOS Guides | Samples

MonoTouch.AudioToolbox.OutputAudioQueue Class

The output AudioQueue.

See Also: OutputAudioQueue


public class OutputAudioQueue : AudioQueue


Use this class to playback audio.

You will usually create an OutputAudioQueue instance and allocate a number of buffers that you will use to fill in with data. Once a buffer is filled, the buffer is enqueued and when the OutputAudioQueue has finished playing it back, the OutputCompleted event will be raised.

See the StreamingAudio sample program in monotouch-samples for an example program.

Related content


Namespace: MonoTouch.AudioToolbox
Assembly: monotouch (in monotouch.dll)
Assembly Versions:

The members of MonoTouch.AudioToolbox.OutputAudioQueue are listed below.

See Also: AudioQueue

Public Constructors

Creates an OutputAudioQueue.
Creates an OutputAudioQueue, specifying on which run loop events are delivered.
Creates an OutputAudioQueue, specifying on which run loop events are delivered.

Public Methods

DisableOfflineRender() : AudioQueueStatus
Disables the offline renderer.
RenderOffline(Double, AudioQueueBuffer*, Int32) : AudioQueueStatus
Writes audio data to an audio buffer, instead of to a device.
SetOfflineRenderFormat(AudioStreamBasicDescription, AudioChannelLayout) : AudioQueueStatus
Enables offline rendering by setting the audio format and optionally the channel layout to use when rendering.

Protected Methods

This method is invoked when a buffer has finished playing.

Public Events

OutputCompletedEvent raised when an audio buffer has completed playing.