AFFormat Class Reference


Overview


AFFormat contains a format for an AFDevice. The format consists of the number of channels, buts per channel and an AudioStreamBasicDescription for a floating point stream that matches the number of channels.

You usually do not create and initialize this object yourself. Instead, let AFDevice create the AFFormat objects. AFDevice will also set the number if physical bits.



Tasks


Creating Instances

-
initWithDescription:


Properties

-
bits
-
channels
-
streamDescription




Instance Methods



initWithDescription:

Initializes the AFFormat object with a stream AudioStreamBasicDescription and a flag if it is an input sound card.

You usually do not create and initialize this object yourself. Instead, let
AFDevice create the AFFormat objects. AFDevice will also set the number if physical bits.

- (id)initWithDescription:(AudioStreamBasicDescription*)asbd

Parameters

asbd
an AudioStreamBasicDescription.

Return Value

An initialized AFFormat object or nil if the object could not be created.



bits

Returns the bit depth for this format of the sound card. bits has an @public access privilege.

- (int)bits

Return Value

The number of bits in this format.



channels

Returns the number ofchannels for this format of the sound card. channels has an @public access privilege.

- (int)channels

Return Value

The number of channels in this format.



streamDescription

Returns the AudioStreamBasicDescription for the stream of this format.

- (AudioStreamBasicDescription*)streamDescription

Return Value

Stream AudioStreamBasicDescription of this format.