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 697:479b8c213f61
prev663:553bb7d6befa
next700:4650d0c7f6f9
author nkeynes
date Sun Jun 22 04:01:27 2008 +0000 (13 years ago)
permissions -rw-r--r--
last change Commit work-in-progress CoreAudio driver
(along with various changes to the audio subsystem)
file annotate diff log raw
1.1 --- a/src/drivers/audio_pulse.c Thu Apr 17 08:15:19 2008 +0000
1.2 +++ b/src/drivers/audio_pulse.c Sun Jun 22 04:01:27 2008 +0000
1.3 @@ -23,13 +23,10 @@
1.4
1.5 static pa_simple *pulse_server = NULL;
1.6
1.7 -gboolean audio_pulse_init()
1.8 +gboolean audio_init( )
1.9 {
1.10 - return TRUE;
1.11 -}
1.12 -
1.13 -gboolean audio_pulse_set_format( uint32_t rate, uint32_t format )
1.14 -{
1.15 + int rate = DEFAULT_SAMPLE_RATE;
1.16 + int format = DEFAULT_SAMPLE_FORMAT;
1.17 pa_sample_spec ss;
1.18
1.19 if( pulse_server != NULL ) {
1.20 @@ -70,16 +67,19 @@
1.21 }
1.22 }
1.23
1.24 -gboolean audio_pulse_close()
1.25 +gboolean audio_pulse_shutdown()
1.26 {
1.27 pa_simple_free(pulse_server);
1.28 pulse_server = NULL;
1.29 return TRUE;
1.30 }
1.31
1.32 -struct audio_driver audio_pulse_driver = { "pulse",
1.33 - audio_pulse_init,
1.34 - audio_pulse_set_format,
1.35 - audio_pulse_process_buffer,
1.36 - audio_pulse_close};
1.37 +struct audio_driver audio_pulse_driver = { "pulse",
1.38 + DEFAULT_SAMPLE_RATE,
1.39 + DEFAULT_SAMPLE_FORMAT,
1.40 + audio_pulse_init,
1.41 + NULL,
1.42 + audio_pulse_process_buffer,
1.43 + NULL,
1.44 + audio_pulse_shutdown};
1.45
.