#include <sys/stat.h>
#include <string.h>
#include <mad.h>
#include <ao/ao.h>
#include <stdbool.h>
#include "daisylibao.h"
#include "audio.h"
#include "libdaisy.h"
Go to the source code of this file.
Data Structures | |
struct | audio_dither |
Defines | |
#define | DITHER_MAGIC 0xC69AA8EC |
Functions | |
void | mp3_init (struct_audio_data_t *data) |
bool | mp3_play (struct_audio_data_t *data) |
void | mp3_close (struct_audio_data_t *data) |
|
Definition at line 46 of file mp3.h. Referenced by audio_linear_dither(), free_dither(), init_dither(), and reset_dither(). |
|
Closes the decoder. This function must be called when you are done using the mp3 decoder.
Definition at line 583 of file mp3.c. References struct_audio_data_t::device, and libao_terminate(). Referenced by audio_decoder(), and audio_terminate(). |
|
Initializes the decoder. This function must be called before audio_play or any atemt to use the mp3 decoder.
Definition at line 530 of file mp3.c. References struct_audio_data_t::cb_error, struct_audio_data_t::daisy, DAISY_ERROR_AUDIO_DATA_IS_NULL, struct_audio_data_t::device, struct_audio_data_t::mutex, struct_audio_data_t::progress, REP_CRITICAL, REP_DEBUG, and report(). Referenced by audio_decoder(). |
|
Plays a file segment. This function will play a file from the start to the stop that is deinfed in the data struct.
Definition at line 558 of file mp3.c. References struct_audio_data_t::fdm, struct_audio_data_t::file_name, mp3_decode(), struct_audio_data_t::mutex, struct_audio_data_t::progress, REP_DEBUG, report(), and STRLEN. Referenced by audio_decoder(). |