#ifndef AUDIO_H_
#define AUDIO_H_
-void init_audio(void);
+typedef int (*audio_callback_func)(void *buffer, int size, void *cls);
+
+void audio_init(void);
+
+void audio_set_callback(audio_callback_func func, void *cls);
+int audio_callback(void *buf, int sz);
+
+void audio_play(int rate, int nchan);
+void audio_pause(void);
+void audio_resume(void);
+void audio_stop(void);
+
+void audio_volume(int vol);
#endif /* AUDIO_H_ */