diff options
author | 2010-01-31 12:46:01 +0100 | |
---|---|---|
committer | 2010-01-31 12:46:01 +0100 | |
commit | c1e21f401913f499c089bf87af0fcdb1ba67c9ec (patch) | |
tree | 430a4e6c9ed3bfd2453b6940f612be723d5861eb /plugins | |
parent | 0ad55ab631eaf2384c91856bbf7b19cca698e8f4 (diff) |
fixed typo in alsa plugin, setting wrong buffer sizes
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/alsa/alsa.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/plugins/alsa/alsa.c b/plugins/alsa/alsa.c index 2017907c..ef1a4782 100644 --- a/plugins/alsa/alsa.c +++ b/plugins/alsa/alsa.c @@ -182,10 +182,12 @@ palsa_set_hw_params (int samplerate) { req_period_size = deadbeef->conf_get_int ("alsa.period", 512); trace ("trying buffer size: %d frames\n", req_buffer_size); trace ("trying period size: %d frames\n", req_period_size); - snd_pcm_hw_params_set_buffer_size_near (audio, hw_params, &buffer_size); - snd_pcm_hw_params_set_period_size_near (audio, hw_params, &period_size, NULL); - trace ("alsa buffer size: %d frames\n", buffer_size); - trace ("alsa period size: %d frames\n", period_size); + snd_pcm_hw_params_set_buffer_size_near (audio, hw_params, &req_buffer_size); + snd_pcm_hw_params_set_period_size_near (audio, hw_params, &req_period_size, NULL); + trace ("alsa buffer size: %d frames\n", req_buffer_size); + trace ("alsa period size: %d frames\n", req_period_size); + buffer_size = req_buffer_size; + period_size = req_period_size; if ((err = snd_pcm_hw_params (audio, hw_params)) < 0) { trace ("cannot set parameters (%s)\n", |