mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-05 13:30:00 -05:00
Added snd_pcm_type_name()
Fixed rate conversion plugin (SIGSEGV) - rounding problem
This commit is contained in:
parent
c8fab38b67
commit
157107491c
5 changed files with 54 additions and 2 deletions
|
|
@ -458,11 +458,13 @@ static int snd_pcm_rate_sw_params(snd_pcm_t *pcm, snd_pcm_sw_params_t * params)
|
|||
}
|
||||
params->boundary = boundary1;
|
||||
sparams.boundary = boundary2;
|
||||
#if 0
|
||||
if (pcm->stream == SND_PCM_STREAM_PLAYBACK) {
|
||||
rate->pitch = (((u_int64_t)boundary2 * DIV) + boundary1 / 2) / boundary1;
|
||||
} else {
|
||||
rate->pitch = (((u_int64_t)boundary1 * DIV) + boundary2 / 2) / boundary2;
|
||||
}
|
||||
#endif
|
||||
recalc(pcm, &sparams.avail_min);
|
||||
recalc(pcm, &sparams.xfer_align);
|
||||
recalc(pcm, &sparams.start_threshold);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue