Search
lxdream.org :: lxdream/src/drivers/audio_alsa.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/drivers/audio_alsa.c
changeset 697:479b8c213f61
prev669:ab344e42bca9
next700:4650d0c7f6f9
author nkeynes
date Sun Jun 22 04:01:27 2008 +0000 (12 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_alsa.c Mon May 12 10:00:13 2008 +0000
1.2 +++ b/src/drivers/audio_alsa.c Sun Jun 22 04:01:27 2008 +0000
1.3 @@ -39,17 +39,13 @@
1.4
1.5 gboolean audio_alsa_init( )
1.6 {
1.7 - return TRUE;
1.8 -}
1.9 -
1.10 -
1.11 -gboolean audio_alsa_set_format( uint32_t rate, uint32_t format )
1.12 -{
1.13 int err;
1.14 snd_pcm_hw_params_t *hw_params;
1.15 snd_pcm_sw_params_t *sw_params;
1.16 snd_pcm_uframes_t frames;
1.17 snd_pcm_uframes_t bufferSize;
1.18 + int rate = DEFAULT_SAMPLE_RATE;
1.19 + int format = DEFAULT_SAMPLE_FORMAT;
1.20 int dir;
1.21
1.22
1.23 @@ -179,7 +175,7 @@
1.24 }
1.25
1.26
1.27 -gboolean audio_alsa_close( )
1.28 +gboolean audio_alsa_shutdown( )
1.29 {
1.30 return TRUE;
1.31 }
1.32 @@ -188,8 +184,11 @@
1.33
1.34 struct audio_driver audio_alsa_driver = {
1.35 "alsa",
1.36 + DEFAULT_SAMPLE_RATE,
1.37 + DEFAULT_SAMPLE_FORMAT,
1.38 audio_alsa_init,
1.39 - audio_alsa_set_format,
1.40 + NULL,
1.41 audio_alsa_process_buffer,
1.42 - audio_alsa_close
1.43 + NULL,
1.44 + audio_alsa_shutdown
1.45 };
.