mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-04 13:30:08 -05:00
- fixed the rate selection in the plug layer:
the multiples of the given rate is chosen if available. the nearest rate is selected as usual if not available.
This commit is contained in:
parent
0c156a3c89
commit
1b41de0653
3 changed files with 27 additions and 2 deletions
|
|
@ -652,8 +652,8 @@ static int snd_pcm_plug_hw_refine_schange(snd_pcm_t *pcm, snd_pcm_hw_params_t *p
|
|||
if (plug->srate == -2)
|
||||
links |= SND_PCM_HW_PARBIT_RATE;
|
||||
else {
|
||||
snd_pcm_hw_param_refine_near(slave, sparams, SND_PCM_HW_PARAM_RATE,
|
||||
params);
|
||||
snd_pcm_hw_param_refine_multiple(slave, sparams, SND_PCM_HW_PARAM_RATE,
|
||||
params);
|
||||
}
|
||||
|
||||
if (plug->schannels == -2)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue