4 #define AUDIO_BACKEND_NONE 0
5 #define AUDIO_BACKEND_AO 1
6 #define AUDIO_BACKEND_SDL 2
8 #define AUDIO_BACKEND AUDIO_BACKEND_AO
12 #if AUDIO_BACKEND != AUDIO_BACKEND_NONE
13 #include "../c-flod/backends/wave_format.h"
15 #define WAVE_HEADER_COMPLETE int
18 void audio_init(void);
19 int audio_open_music(const char* filename
, int track
);
20 int audio_open_music_resource(const unsigned char* data
, size_t data_size
, int track
);
21 int audio_process(void);
23 void audio_play_wav(const char* filename
);
24 void audio_play_wave_resource(const WAVE_HEADER_COMPLETE
* wave
);
25 void audio_close(void);
27 #pragma RcB2 DEP "audio.c"