Search
lxdream.org :: lxdream :: r880:214979b3bc80
lxdream 0.9.1
released Jun 29
Download Now
changeset880:214979b3bc80
parent879:a07af43e03c4
child881:10b67e485aa4
authornkeynes
dateSun Oct 19 06:34:27 2008 +0000 (11 years ago)
increase start threshold to the full buffer size (sounds a bit better)
src/drivers/audio_alsa.c
1.1 --- a/src/drivers/audio_alsa.c Sun Oct 19 05:42:05 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));
.