mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-10-29 05:40:25 -04:00
Added ptrs to status struct (to have atomic now ptr). Changed boundary choice to a more useful one (related to pcm_meter)
This commit is contained in:
parent
191d03501e
commit
d8f5d4a4d2
1 changed files with 3 additions and 1 deletions
|
|
@ -2053,7 +2053,9 @@ int snd_pcm_sw_params_default(snd_pcm_t *pcm, snd_pcm_sw_params_t *params)
|
|||
params->xfer_align = pcm->period_size;
|
||||
params->silence_threshold = 0;
|
||||
params->silence_size = 0;
|
||||
params->boundary = LONG_MAX - pcm->buffer_size * 2 - LONG_MAX % pcm->buffer_size;
|
||||
params->boundary = pcm->buffer_size;
|
||||
while (params->boundary * 2 <= LONG_MAX - pcm->buffer_size)
|
||||
params->boundary *= 2;
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue