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 880:214979b3bc80
prev806:6ef1ce4a9dbc
next1021:848db285a184
author nkeynes
date Sun Oct 19 06:34:27 2008 +0000 (11 years ago)
permissions -rw-r--r--
last change increase start threshold to the full buffer size (sounds a bit better)
file annotate diff log raw
1.1 --- a/src/drivers/audio_alsa.c Fri Aug 08 00:17:57 2008 +0000
1.2 +++ b/src/drivers/audio_alsa.c Sun Oct 19 06:34:27 2008 +0000
1.3 @@ -140,7 +140,7 @@
1.4 // Set the start threshold to reduce inter-buffer gaps
1.5 snd_pcm_sw_params_alloca( &sw_params );
1.6 snd_pcm_sw_params_current( _soundDevice, sw_params );
1.7 - snd_pcm_sw_params_set_start_threshold( _soundDevice, sw_params, bufferSize/2 );
1.8 + snd_pcm_sw_params_set_start_threshold( _soundDevice, sw_params, bufferSize );
1.9 err = snd_pcm_sw_params( _soundDevice, sw_params );
1.10 if( err < 0 ) {
1.11 ERROR("Unable to set sw params for alsa driver: %s\n", snd_strerror(err));
.