mirror of
https://github.com/alsa-project/alsa-utils
synced 2024-12-22 07:46:30 +01:00
Correct buffer size choosing.
This commit is contained in:
parent
8a2ce1908d
commit
6304ad4634
1 changed files with 2 additions and 1 deletions
|
@ -288,7 +288,8 @@ static int set_hwparams(snd_pcm_t *handle, snd_pcm_hw_params_t *params, snd_pcm_
|
|||
|
||||
buffer_size = buffer_time_to_size;
|
||||
//buffer_size=8096;
|
||||
buffer_size=15052;
|
||||
//buffer_size=15052;
|
||||
buffer_size=buffer_size_max;
|
||||
if (buffer_size_max < buffer_size) buffer_size = buffer_size_max;
|
||||
if (buffer_size_min > buffer_size) buffer_size = buffer_size_min;
|
||||
//buffer_size=0x800;
|
||||
|
|
Loading…
Reference in a new issue