Go to the source code of this file.
Macros | |
#define | DEVICE_CHANNELS 1 |
#define | DEVICE_FORMAT ma_format_f32 |
#define | DEVICE_SAMPLE_RATE 48000 |
#define | MINIAUDIO_IMPLEMENTATION |
#define | PCM_FRAME_CHUNK_SIZE 1234 /* <-- Play around with this to control your fixed sized buffer. */ |
Functions | |
void | data_callback (ma_device *pDevice, void *pOutput, const void *pInput, ma_uint32 frameCount) |
void | data_callback_fixed (ma_device *pDevice, void *pOutput, const void *pInput, ma_uint32 frameCount) |
int | main (int argc, char **argv) |
Variables | |
ma_pcm_rb | g_rb |
ma_waveform | g_sineWave |
#define DEVICE_CHANNELS 1 |
Definition at line 20 of file porcupine/demo/c/dr_libs/tests/external/miniaudio/examples/fixed_size_callback.c.
#define DEVICE_FORMAT ma_format_f32 |
Definition at line 19 of file porcupine/demo/c/dr_libs/tests/external/miniaudio/examples/fixed_size_callback.c.
#define DEVICE_SAMPLE_RATE 48000 |
Definition at line 21 of file porcupine/demo/c/dr_libs/tests/external/miniaudio/examples/fixed_size_callback.c.
#define MINIAUDIO_IMPLEMENTATION |
Definition at line 14 of file porcupine/demo/c/dr_libs/tests/external/miniaudio/examples/fixed_size_callback.c.
#define PCM_FRAME_CHUNK_SIZE 1234 /* <-- Play around with this to control your fixed sized buffer. */ |
Definition at line 23 of file porcupine/demo/c/dr_libs/tests/external/miniaudio/examples/fixed_size_callback.c.
void data_callback | ( | ma_device * | pDevice, |
void * | pOutput, | ||
const void * | pInput, | ||
ma_uint32 | frameCount | ||
) |
Definition at line 43 of file porcupine/demo/c/dr_libs/tests/external/miniaudio/examples/fixed_size_callback.c.
void data_callback_fixed | ( | ma_device * | pDevice, |
void * | pOutput, | ||
const void * | pInput, | ||
ma_uint32 | frameCount | ||
) |
Definition at line 28 of file porcupine/demo/c/dr_libs/tests/external/miniaudio/examples/fixed_size_callback.c.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 99 of file porcupine/demo/c/dr_libs/tests/external/miniaudio/examples/fixed_size_callback.c.
ma_pcm_rb g_rb |
Definition at line 26 of file porcupine/demo/c/dr_libs/tests/external/miniaudio/examples/fixed_size_callback.c.
ma_waveform g_sineWave |
Definition at line 25 of file porcupine/demo/c/dr_libs/tests/external/miniaudio/examples/fixed_size_callback.c.