OTAudioData Class Reference

Inherits from NSObject
Declared in OTAudioKit.h

Overview

Defines audio data passed into the [OTCustomAudioTransformer transform:] method. method.

  sampleBuffer

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 …

@property (nonatomic, assign) int16_t *sampleBuffer

Declared In

OTAudioKit.h

  bitsPerSample

The size, in bits of each sample.

@property (nonatomic, assign) uint32_t bitsPerSample

Declared In

OTAudioKit.h

  sampleRate

The bitrate of the samples, in bits per second.

@property (nonatomic, assign) uint32_t sampleRate

Declared In

OTAudioKit.h

  numberOfChannels

The number of audio channels.

@property (nonatomic, assign) uint32_t numberOfChannels

Declared In

OTAudioKit.h

  numberOfSamples

The number of samples per channel.

@property (nonatomic, assign) uint32_t numberOfSamples

Declared In

OTAudioKit.h