#include <ao/ao.h>
#include <stdio.h>
#include <stdbool.h>
#include <errno.h>
#include <assert.h>
#include "daisylibao.h"
#include "common.h"
#include "audio.h"
#include "report.h"
#include "snprintf/snprintf.h"
Go to the source code of this file.
Functions | |
void | ao_open_live_error (void) |
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) |
|
This function is called if ao_open_live returns NULL. This means we have an error, and this method reports it based on errno Definition at line 62 of file daisylibao.c. References REP_ERROR, and report(). Referenced by libao_initiate(). |
|
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. |