mirror of
http://www.pogo.org.uk/~mark/trx.git
synced 2024-11-21 18:05:06 +01:00
Specify maximum buffer size
This commit is contained in:
parent
5cc289aa66
commit
427484e2b7
4
device.c
4
device.c
@ -44,8 +44,8 @@ int set_alsa_hw(snd_pcm_t *pcm,
|
|||||||
CHK("snd_pcm_hw_params_set_channels", r);
|
CHK("snd_pcm_hw_params_set_channels", r);
|
||||||
|
|
||||||
dir = 0;
|
dir = 0;
|
||||||
r = snd_pcm_hw_params_set_buffer_time_near(pcm, hw, &buffer, &dir);
|
r = snd_pcm_hw_params_set_buffer_time_max(pcm, hw, &buffer, &dir);
|
||||||
CHK("snd_pcm_hw_params_set_buffer_time_near", r);
|
CHK("snd_pcm_hw_params_set_buffer_time_max", r);
|
||||||
|
|
||||||
r = snd_pcm_hw_params(pcm, hw);
|
r = snd_pcm_hw_params(pcm, hw);
|
||||||
CHK("hw_params", r);
|
CHK("hw_params", r);
|
||||||
|
Loading…
Reference in New Issue
Block a user