AudioDataFormat
class AudioDataFormat: NSObjectWraps properties describing the format of the incoming audio samples, namely number of channels and the sample rate.
-
Initializes a new
AudioDataFormatwith the given channel count and sample rate.Declaration
Swift
init(channelCount: UInt, sampleRate: CDouble)Parameters
channelCountNumber of channels.
sampleRateSample rate.
Return Value
A new instance of
AudioDataFormatwith the given channel count and sample rate. -
Initializes a new
AudioDataFormatwith the default channel count of 1 and the given sample rate.Declaration
Swift
init(sampleRate: CDouble)Parameters
sampleRateSample rate.
Return Value
A new instance of
AudioDataFormatwith the default channel count of 1 and the given sample rate. -
Number of channels
Declaration
Swift
var channelCount: UInt { get } -
Sample rate
Declaration
Swift
var sampleRate: CDouble { get }