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:
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);
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user