Audio playback functions. More...
Go to the source code of this file.
Data Structures | |
struct | CGL_AUDIO_INFO_T |
Audio information. More... | |
Typedefs | |
typedef enum CGL_AUDIO_SAMPLING_FREQ_T | CGL_AUDIO_SAMPLING_FREQ_T |
Sampling frequency enum definitions. | |
typedef struct CGL_AUDIO_INFO_T | CGL_AUDIO_INFO_T |
Audio information. | |
Enumerations | |
enum | CGL_AUDIO_SAMPLING_FREQ_T |
Sampling frequency enum definitions. | |
Functions | |
static CGL_AUDIO_SAMPLING_FREQ_T | CGL_AUDIO_SAMPLING_FREQ_OF (int hertz) |
Helper function to get enum for certain sampling frequency. More... | |
int | CGL_OpenAudio (const CGL_AUDIO_INFO_T *info) |
Opens audio playback. More... | |
int | CGL_PlayAudio (const void *data, size_t size) |
Feed and play audio data. More... | |
int | CGL_CloseAudio () |
Closes audio playback. More... | |
Audio playback functions.
|
inlinestatic |
Helper function to get enum for certain sampling frequency.
hertz | Sampling frequency |
int CGL_CloseAudio | ( | ) |
Closes audio playback.
int CGL_OpenAudio | ( | const CGL_AUDIO_INFO_T * | info | ) |
Opens audio playback.
info | Audio information |
int CGL_PlayAudio | ( | const void * | data, |
size_t | size | ||
) |
Feed and play audio data.
data | Audio stream buffer |
size | Size of buffer |