OTAudioData
Defines audio data passed into the [OTCustomAudioTransformer transform:] method. method.
Properties
| Name | Type | Description |
|---|---|---|
sampleBuffer |
const int16_t * | The underlying buffer, with the samples. The total size of the buffer is NumberOfSamples * NumberOfChannels * BitsPerSample / 8. Inside the buffer, the data is organized one sample after the other, where each sample contains all channels, one after the other. For a batch of stereo audio, the buffer looks like this: S1C1 S1C2 S2C1 S2C2 ... |
bitsPerSample |
uint32_t | The size, in bits of each sample. |
sampleRate |
uint32_t | The bitrate of the samples, in bits per second. |
numberOfChannels |
uint64_t | The number of audio channels. |
numberOfSamples |
uint64_t | The number of samples per channel. |