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 669:ab344e42bca9
prev643:653b0a70f173
next697:479b8c213f61
author nkeynes
date Mon May 12 10:00:13 2008 +0000 (12 years ago)
permissions -rw-r--r--
last change Cleanup most of the -Wall warnings (getting a bit sloppy...)
Convert FP code to use fixed banks rather than indirect pointer
(3-4% faster this way now)
file annotate diff log raw
1.1 --- a/src/drivers/audio_alsa.c Tue Feb 26 01:10:48 2008 +0000
1.2 +++ b/src/drivers/audio_alsa.c Mon May 12 10:00:13 2008 +0000
1.3 @@ -28,7 +28,6 @@
1.4
1.5
1.6 static snd_pcm_t *_soundDevice = NULL;
1.7 -static int frames;
1.8 static int frame_bytes;
1.9
1.10
1.11 @@ -40,21 +39,16 @@
1.12
1.13 gboolean audio_alsa_init( )
1.14 {
1.15 - int err;
1.16 -
1.17 return TRUE;
1.18 }
1.19
1.20
1.21 gboolean audio_alsa_set_format( uint32_t rate, uint32_t format )
1.22 {
1.23 - int i;
1.24 int err;
1.25 snd_pcm_hw_params_t *hw_params;
1.26 snd_pcm_sw_params_t *sw_params;
1.27 snd_pcm_uframes_t frames;
1.28 - unsigned int resample = 1;
1.29 - unsigned int actualRate = rate;
1.30 snd_pcm_uframes_t bufferSize;
1.31 int dir;
1.32
1.33 @@ -187,8 +181,6 @@
1.34
1.35 gboolean audio_alsa_close( )
1.36 {
1.37 - int err;
1.38 -
1.39 return TRUE;
1.40 }
1.41
.