Search
lxdream.org :: lxdream/src/drivers/audio_null.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/audio_null.c
changeset 643:653b0a70f173
prev561:533f6b478071
next697:479b8c213f61
author bhaal22
date Tue Feb 26 01:10:48 2008 +0000 (14 years ago)
permissions -rw-r--r--
last change Commit initial ALSA audio driver
Add init/shutdown stubs to audio driver structure
file annotate diff log raw
1.1 --- a/src/drivers/audio_null.c Tue Jan 01 05:08:38 2008 +0000
1.2 +++ b/src/drivers/audio_null.c Tue Feb 26 01:10:48 2008 +0000
1.3 @@ -18,6 +18,11 @@
1.4 */
1.5 #include "aica/audio.h"
1.6
1.7 +gboolean audio_null_init()
1.8 +{
1.9 + return TRUE;
1.10 +}
1.11 +
1.12 gboolean audio_null_set_format( uint32_t rate, uint32_t format )
1.13 {
1.14 return TRUE;
1.15 @@ -28,4 +33,13 @@
1.16 return TRUE;
1.17 }
1.18
1.19 -struct audio_driver audio_null_driver = { "null", audio_null_set_format, audio_null_process_buffer };
1.20 +gboolean audio_null_close()
1.21 +{
1.22 + return TRUE;
1.23 +}
1.24 +
1.25 +struct audio_driver audio_null_driver = { "null",
1.26 + audio_null_init,
1.27 + audio_null_set_format,
1.28 + audio_null_process_buffer,
1.29 + audio_null_close};
.