Specify maximum buffer size

master
Mark Hills 2012-07-24 22:46:19 +01:00
parent 5cc289aa66
commit 427484e2b7
1 changed files with 2 additions and 2 deletions

View File

@ -44,8 +44,8 @@ int set_alsa_hw(snd_pcm_t *pcm,
CHK("snd_pcm_hw_params_set_channels", r);
dir = 0;
r = snd_pcm_hw_params_set_buffer_time_near(pcm, hw, &buffer, &dir);
CHK("snd_pcm_hw_params_set_buffer_time_near", r);
r = snd_pcm_hw_params_set_buffer_time_max(pcm, hw, &buffer, &dir);
CHK("snd_pcm_hw_params_set_buffer_time_max", r);
r = snd_pcm_hw_params(pcm, hw);
CHK("hw_params", r);