filename | src/drivers/audio_pulse.c |
changeset | 1024:c67f2d61ab97 |
prev | 736:a02d1475ccfd |
author | nkeynes |
date | Thu Feb 23 15:24:47 2012 +1000 (12 years ago) |
permissions | -rw-r--r-- |
last change | Check for existence of glDrawBuffer (assuming that glReadBuffer will follow). Note only need to guard the common code in gl_fbo.c |
file | annotate | diff | log | raw |
1.1 --- a/src/drivers/audio_pulse.c Mon Jul 14 07:44:42 2008 +00001.2 +++ b/src/drivers/audio_pulse.c Thu Feb 23 15:24:47 2012 +10001.3 @@ -23,7 +23,7 @@1.5 static pa_simple *pulse_server = NULL;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.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.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.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.45 +AUDIO_DRIVER( "pulse", audio_pulse_driver );
.