OutputAudioQueue Class

Definition

The output AudioQueue.

public class OutputAudioQueue : AudioToolbox.AudioQueue
type OutputAudioQueue = class
    inherit AudioQueue
Inheritance
OutputAudioQueue

Remarks

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.

Constructors

OutputAudioQueue(AudioStreamBasicDescription, CFRunLoop, CFString)

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

OutputAudioQueue(AudioStreamBasicDescription, CFRunLoop, String)

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

OutputAudioQueue(AudioStreamBasicDescription)

Creates an OutputAudioQueue.

Fields

gch (Inherited from AudioQueue)
handle (Inherited from AudioQueue)

Properties

AudioStreamDescription (Inherited from AudioQueue)
AudioStreamPacketDescription
Obsolete.

The audio queue's AudioStreamBasicDescription.

(Inherited from AudioQueue)
ChannelLayout

The audio queue channel layout.

(Inherited from AudioQueue)
ConverterError

Contains the most recent error generated in the audio queue's encoding or decoding process.

(Inherited from AudioQueue)
CurrentDevice

Unique identifier for the device associated with this Audio Queue.

(Inherited from AudioQueue)
CurrentLevelMeter

Current Level meters, one per channel in the range zero (minimum) to one (maximum).

(Inherited from AudioQueue)
CurrentLevelMeterDB

Current Level meters, one per channel in decibels.

(Inherited from AudioQueue)
CurrentTime

Returns the current time for the hardware device.

(Inherited from AudioQueue)
DecodeBufferSizeFrames (Inherited from AudioQueue)
DeviceChannels (Inherited from AudioQueue)
EnableLevelMetering

Enables level metering on the audio queue.

(Inherited from AudioQueue)
Handle

Handle (pointer) to the unmanaged object representation.

(Inherited from AudioQueue)
HardwareCodecPolicy (Inherited from AudioQueue)
IsRunning (Inherited from AudioQueue)
MagicCookie

Audio metadata required by certain formats.

(Inherited from AudioQueue)
MaximumOutputPacketSize (Inherited from AudioQueue)
Pan (Inherited from AudioQueue)
SampleRate (Inherited from AudioQueue)
Volume

The volume

(Inherited from AudioQueue)
VolumeRampTime (Inherited from AudioQueue)

Methods

AddListener(AudioQueueProperty, AudioQueue+AudioQueuePropertyChanged)

Use this method to track changes to the audio queue properties.

(Inherited from AudioQueue)
AllocateBuffer(Int32, AudioQueueBuffer*)

Allocates an audio buffer associated with this AudioQueue

(Inherited from AudioQueue)
AllocateBuffer(Int32, IntPtr)

Allocates an audio buffer associated with this AudioQueue, used for fixed bit rate buffers.

(Inherited from AudioQueue)
AllocateBufferWithPacketDescriptors(Int32, Int32, IntPtr)

Allocates an audio queue object for variable-bit-rate buffers.

(Inherited from AudioQueue)
CreateProcessingTap(AudioQueueProcessingTapDelegate, AudioQueueProcessingTapFlags, AudioQueueStatus)

Creates a processing tap in the AudioQueue.

(Inherited from AudioQueue)
CreateTimeline()

Creates a timeline object that can be used to track discontinuities in the audio queue's audio.

(Inherited from AudioQueue)
DisableOfflineRender()

Disables the offline renderer.

Dispose()

Releases the resources used by the AudioQueue object.

(Inherited from AudioQueue)
Dispose(Boolean)

Releases the resources used by the AudioQueue object.

(Inherited from AudioQueue)
EnqueueBuffer(AudioQueueBuffer*, AudioStreamPacketDescription[])

Adds a buffer to the buffer queue of an audio queue.

(Inherited from AudioQueue)
EnqueueBuffer(AudioQueueBuffer*, Int32, AudioStreamPacketDescription[], Int32, Int32, AudioQueueParameterEvent[], AudioTimeStamp, AudioTimeStamp)

Adds a buffer to the buffer queue of a playback audio queue, specifying start time and parameters.

(Inherited from AudioQueue)
EnqueueBuffer(AudioQueueBuffer*, Int32, AudioStreamPacketDescription[], Int32, Int32, AudioQueueParameterEvent[], AudioTimeStamp)

Adds a buffer that should play as soon as possible to the buffer queue of a playback audio queue.

(Inherited from AudioQueue)
EnqueueBuffer(IntPtr, AudioStreamPacketDescription[]) (Inherited from AudioQueue)
EnqueueBuffer(IntPtr, Int32, AudioStreamPacketDescription[], Int32, Int32, AudioQueueParameterEvent[], AudioTimeStamp, AudioTimeStamp)

Adds a buffer to the buffer queue of a playback audio queue, specifying start time and parameters.

(Inherited from AudioQueue)
EnqueueBuffer(IntPtr, Int32, AudioStreamPacketDescription[], Int32, Int32, AudioQueueParameterEvent[], AudioTimeStamp)

Adds a buffer that should play as soon as possible to the buffer queue of a playback audio queue.

(Inherited from AudioQueue)
EnqueueBuffer(IntPtr, Int32, AudioStreamPacketDescription[])

Adds a buffer to the buffer queue of an audio queue.

(Inherited from AudioQueue)
Flush() (Inherited from AudioQueue)
FreeBuffer(IntPtr)

Releases an AudioQueue buffer.

(Inherited from AudioQueue)
GetCurrentTime(AudioQueueTimeline, AudioTimeStamp, Boolean)

Returns the current time for the audio queue.

(Inherited from AudioQueue)
GetNearestStartTime(AudioTimeStamp) (Inherited from AudioQueue)
GetProperty(AudioQueueProperty, Int32, IntPtr)

Low-level API to fetch AudioQueue properties.

(Inherited from AudioQueue)
GetProperty(AudioQueueProperty, Int32)

Low-level API to fetch AudioQueue properties.

(Inherited from AudioQueue)
GetProperty<T>(AudioQueueProperty)

Low-level API to fetch AudioQueue properties.

(Inherited from AudioQueue)
OnBufferCompleted(IntPtr)
Pause() (Inherited from AudioQueue)
Prime(Int32, Int32)

Used to prepare the audio buffers to play back and ensure that there is data ready to be played by the audio hardware.

(Inherited from AudioQueue)
QueueDispose() (Inherited from AudioQueue)
RemoveListener(AudioQueueProperty, AudioQueue+AudioQueuePropertyChanged) (Inherited from AudioQueue)
RenderOffline(Double, AudioQueueBuffer*, Int32)

Writes audio data to an audio buffer, instead of to a device.

Reset() (Inherited from AudioQueue)
SetChannelAssignments(AudioQueueChannelAssignment[]) (Inherited from AudioQueue)
SetOfflineRenderFormat(AudioStreamBasicDescription, AudioChannelLayout)

Enables offline rendering by setting the audio format and optionally the channel layout to use when rendering.

SetProperty(AudioQueueProperty, Int32, IntPtr) (Inherited from AudioQueue)
Start()

Starts the audio queue.

(Inherited from AudioQueue)
Start(AudioTimeStamp) (Inherited from AudioQueue)
Stop(Boolean)

Stops the AudioQueue.

(Inherited from AudioQueue)
TranslateTime(AudioTimeStamp) (Inherited from AudioQueue)

Events

BufferCompleted

Applies to

See also