1
0
mirror of http://www.pogo.org.uk/~mark/trx.git synced 2024-12-22 15:35:06 +01:00

Specify maximum buffer size

This commit is contained in:
Mark Hills 2012-07-24 22:46:19 +01:00
parent 5cc289aa66
commit 427484e2b7

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);