1.1 --- a/src/aica/audio.h Mon Jul 21 01:01:39 2008 +0000
1.2 +++ b/src/aica/audio.h Sat Jun 13 00:50:48 2009 +0000
1.5 #include <glib/gtypes.h>
1.14 typedef struct audio_driver {
1.16 - char *description;
1.18 + const char *description;
1.19 + int priority; /* Lower == higher priority */
1.20 uint32_t sample_rate;
1.21 uint32_t sample_format;
1.22 gboolean (*init)( );
1.23 @@ -107,6 +109,21 @@
1.24 audio_driver_t audio_init_driver( const char *preferred_driver );
1.27 + * Add a new audio driver to the available drivers list
1.29 +gboolean audio_register_driver( audio_driver_t driver );
1.32 + * Signal the audio driver that playback is beginning
1.34 +void audio_start_driver();
1.37 + * Signal the audio driver that playback is stopping
1.39 +void audio_stop_driver();
1.42 * Mark the current write buffer as full and prepare the next buffer for
1.43 * writing. Returns the next buffer to write to.
1.44 * If all buffers are full, returns NULL.