diff options
author | Alexey Yakovenko <wakeroid@gmail.com> | 2010-01-31 20:31:19 +0100 |
---|---|---|
committer | Alexey Yakovenko <wakeroid@gmail.com> | 2010-01-31 20:31:19 +0100 |
commit | e0cb4500dd05050e60414b7bb25d91f392435437 (patch) | |
tree | 2a6357d1d464526270702fcba8f08c0fbd4b7792 /plugins | |
parent | 6e6dc88fc61f4a84269a592c76c2b6bd0417bf4a (diff) | |
parent | 09cb6bfdd7d9e5cf571116ead1bb4209a8c9e58b (diff) |
Merge branch 'master' into devel
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/alsa/alsa.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/alsa/alsa.c b/plugins/alsa/alsa.c index ef1a4782..9e6370e4 100644 --- a/plugins/alsa/alsa.c +++ b/plugins/alsa/alsa.c @@ -180,14 +180,14 @@ palsa_set_hw_params (int samplerate) { req_buffer_size = deadbeef->conf_get_int ("alsa.buffer", 1024); 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, &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; + trace ("trying buffer size: %d frames\n", buffer_size); + trace ("trying period size: %d frames\n", 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); if ((err = snd_pcm_hw_params (audio, hw_params)) < 0) { trace ("cannot set parameters (%s)\n", |