MillicastSDK 2.0.0
|
The AudioFrame struct used to described audio data. More...
#include <frames.h>
Public Attributes | |
const void * | data |
int | bits_per_sample |
int | sample_rate |
size_t | number_of_channels |
size_t | number_of_frames |
The AudioFrame struct used to described audio data.
int millicast::AudioFrame::bits_per_sample |
The number of bits per sample, 16 bits or 32 bits only
const void* millicast::AudioFrame::data |
The audio data
size_t millicast::AudioFrame::number_of_channels |
The number of channels used
size_t millicast::AudioFrame::number_of_frames |
The number of frames contained in this object. This is dependant on the length of each frame in time as well as the sample rate. For example, if each frame equates to 10 milliseconds of playback, and the sample rate is 48 kHz, then the number of frames = 10 ms * 48 kHz = 480 frames
int millicast::AudioFrame::sample_rate |
The sample rate of the audio data, must be 48kHz