Search
lxdream.org :: lxdream/src/drivers/audio_pulse.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/audio_pulse.c
changeset 1024:c67f2d61ab97
prev736:a02d1475ccfd
author nkeynes
date Fri May 29 18:47:05 2015 +1000 (6 years ago)
permissions -rw-r--r--
last change Fix test case
file annotate diff log raw
1.1 --- a/src/drivers/audio_pulse.c Mon Jul 14 07:44:42 2008 +0000
1.2 +++ b/src/drivers/audio_pulse.c Fri May 29 18:47:05 2015 +1000
1.3 @@ -23,7 +23,7 @@
1.4
1.5 static pa_simple *pulse_server = NULL;
1.6
1.7 -gboolean audio_pulse_init( )
1.8 +static gboolean audio_pulse_init( )
1.9 {
1.10 int rate = DEFAULT_SAMPLE_RATE;
1.11 int format = DEFAULT_SAMPLE_FORMAT;
1.12 @@ -55,7 +55,7 @@
1.13 return TRUE;
1.14 }
1.15
1.16 -gboolean audio_pulse_process_buffer( audio_buffer_t buffer )
1.17 +static gboolean audio_pulse_process_buffer( audio_buffer_t buffer )
1.18 {
1.19 if( pulse_server != NULL ) {
1.20 int error;
1.21 @@ -67,16 +67,17 @@
1.22 }
1.23 }
1.24
1.25 -gboolean audio_pulse_shutdown()
1.26 +static gboolean audio_pulse_shutdown()
1.27 {
1.28 pa_simple_free(pulse_server);
1.29 pulse_server = NULL;
1.30 return TRUE;
1.31 }
1.32
1.33 -struct audio_driver audio_pulse_driver = {
1.34 +static struct audio_driver audio_pulse_driver = {
1.35 "pulse",
1.36 N_("PulseAudio sound server driver"),
1.37 + 10,
1.38 DEFAULT_SAMPLE_RATE,
1.39 DEFAULT_SAMPLE_FORMAT,
1.40 audio_pulse_init,
1.41 @@ -85,3 +86,4 @@
1.42 NULL,
1.43 audio_pulse_shutdown};
1.44
1.45 +AUDIO_DRIVER( "pulse", audio_pulse_driver );
.