palpic2png.c: improve, make usable with ppic binary files
[rofl0r-openDOW.git] / audio.h
blobab0eed57390c411bd4eea1b0faf528fa5a409104
1 #ifndef AUDIO_H
2 #define AUDIO_H
4 #define AUDIO_BACKEND_NONE 0
5 #define AUDIO_BACKEND_AO 1
6 #define AUDIO_BACKEND_SDL 2
7 #ifndef AUDIO_BACKEND
8 #define AUDIO_BACKEND AUDIO_BACKEND_AO
9 #endif
11 #include <stddef.h>
12 #if AUDIO_BACKEND != AUDIO_BACKEND_NONE
13 #include "../c-flod/backends/wave_format.h"
14 #else
15 #define WAVE_HEADER_COMPLETE int
16 #endif
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"
29 #endif