mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
mix: Mix the right number of streams
Passing channels instead of nstreams to pa_mix_ch2_s16ne() caused that only the first two streams got mixed. BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=63093
This commit is contained in:
parent
473b31f9de
commit
179cacfc66
1 changed files with 1 additions and 1 deletions
|
|
@ -249,7 +249,7 @@ static void pa_mix_s16ne_c(pa_mix_info streams[], unsigned nstreams, unsigned ch
|
||||||
else if (nstreams == 2)
|
else if (nstreams == 2)
|
||||||
pa_mix2_s16ne(streams, channels, data, length);
|
pa_mix2_s16ne(streams, channels, data, length);
|
||||||
else if (channels == 2)
|
else if (channels == 2)
|
||||||
pa_mix_ch2_s16ne(streams, channels, data, length);
|
pa_mix_ch2_s16ne(streams, nstreams, data, length);
|
||||||
else
|
else
|
||||||
pa_mix_generic_s16ne(streams, nstreams, channels, data, length);
|
pa_mix_generic_s16ne(streams, nstreams, channels, data, length);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue