Edytuj

Udostępnij za pośrednictwem


InputAudioQueue Class

Definition

An Input Audio Queue, used for audio capturing and recording.

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

Remarks

To receive input completed notifications, you can either hook up to the C# event InputCompleted or you can subclass and override the OnInputCompleted method. They serve the same purpose.

Constructors

InputAudioQueue(AudioStreamBasicDescription, CFRunLoop, String)

Creates an AudioQueue for recording, specifying on which run loop events are delivered.

InputAudioQueue(AudioStreamBasicDescription)

Creates an AudioQueue for recording, and invokes the notification callback on an internal AudioQueue thread.

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)
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(AudioQueueBuffer*)

Adds the specified buffer to the queue.

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)
OnInputCompleted(IntPtr, AudioTimeStamp, AudioStreamPacketDescription[])

Method invoked .

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)
Reset() (Inherited from AudioQueue)
SetChannelAssignments(AudioQueueChannelAssignment[]) (Inherited from AudioQueue)
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

InputCompleted

Event raised when a buffer has been filled up with recorded data.

Applies to