Search
lxdream.org :: lxdream :: r74:771ee2b1e4f8
lxdream 0.9.1
released Jun 29
Download Now
changeset74:771ee2b1e4f8
parent73:0bb57e51ac9e
child75:58ff379f11df
authornkeynes
dateThu Jan 12 12:38:59 2006 +0000 (14 years ago)
Add driver name to audio_driver struct
src/aica/audio.h
src/drivers/audio_esd.c
src/drivers/audio_null.c
1.1 --- a/src/aica/audio.h Thu Jan 12 11:30:19 2006 +0000
1.2 +++ b/src/aica/audio.h Thu Jan 12 12:38:59 2006 +0000
1.3 @@ -1,5 +1,5 @@
1.4 /**
1.5 - * $Id: audio.h,v 1.2 2006-01-12 11:30:19 nkeynes Exp $
1.6 + * $Id: audio.h,v 1.3 2006-01-12 12:38:59 nkeynes Exp $
1.7 *
1.8 * Audio engine, ie the part that does the actual work.
1.9 *
1.10 @@ -62,6 +62,7 @@
1.11 } *audio_buffer_t;
1.12
1.13 struct audio_driver {
1.14 + char *name;
1.15 gboolean (*set_output_format)( uint32_t sample_rate, uint32_t format );
1.16 gboolean (*process_buffer)( audio_buffer_t buffer );
1.17 };
2.1 --- a/src/drivers/audio_esd.c Thu Jan 12 11:30:19 2006 +0000
2.2 +++ b/src/drivers/audio_esd.c Thu Jan 12 12:38:59 2006 +0000
2.3 @@ -1,5 +1,5 @@
2.4 /**
2.5 - * $Id: audio_esd.c,v 1.2 2006-01-12 11:30:19 nkeynes Exp $
2.6 + * $Id: audio_esd.c,v 1.3 2006-01-12 12:38:59 nkeynes Exp $
2.7 *
2.8 * The esd (esound) audio driver
2.9 *
2.10 @@ -52,5 +52,5 @@
2.11 return TRUE;
2.12 }
2.13
2.14 -struct audio_driver esd_audio_driver = { esd_audio_set_format, esd_audio_process_buffer };
2.15 +struct audio_driver esd_audio_driver = { "esd", esd_audio_set_format, esd_audio_process_buffer };
2.16
3.1 --- a/src/drivers/audio_null.c Thu Jan 12 11:30:19 2006 +0000
3.2 +++ b/src/drivers/audio_null.c Thu Jan 12 12:38:59 2006 +0000
3.3 @@ -1,5 +1,5 @@
3.4 /**
3.5 - * $Id: audio_null.c,v 1.1 2006-01-10 13:56:54 nkeynes Exp $
3.6 + * $Id: audio_null.c,v 1.2 2006-01-12 12:38:59 nkeynes Exp $
3.7 *
3.8 * The "null" audio driver, which just discards all input without even
3.9 * looking at it.
3.10 @@ -28,4 +28,4 @@
3.11 return TRUE;
3.12 }
3.13
3.14 -struct audio_driver null_audio_driver = { null_audio_set_format, null_audio_process_buffer };
3.15 +struct audio_driver null_audio_driver = { "null", null_audio_set_format, null_audio_process_buffer };
.