#include <mad.h>
#include <stdbool.h>
#include "audio.h"
#include "common.h"
Go to the source code of this file.
Functions | |
ao_device * | libao_initiate (int byte_format, int channels, int samplerate) |
int | libao_play (ao_device *device, void *output_samples, int num_bytes) |
void | libao_terminate (ao_device *device) |
|
Initialises the libao-part of the audio engine. Must be called before the libao part of the audio engine is to be used.
Definition at line 101 of file daisylibao.c. References ao_open_live_error(), REP_DEBUG, REP_ERROR, report(), and STRLEN. Referenced by output(). |
|
Outputs samples from a buffer. (basically wraps the ao_play() function).
Definition at line 143 of file daisylibao.c. Referenced by output(). |
|
Terminates libao part of audio engine the Proper Way [tm]
Definition at line 152 of file daisylibao.c. |