mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-05 13:29:57 -05:00
fix multiplication of software pa_cvolumes
git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@783 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
b4ac6d05d2
commit
4e61ebb981
1 changed files with 1 additions and 1 deletions
|
|
@ -154,7 +154,7 @@ pa_cvolume *pa_sw_cvolume_multiply(pa_cvolume *dest, const pa_cvolume *a, const
|
||||||
assert(a);
|
assert(a);
|
||||||
assert(b);
|
assert(b);
|
||||||
|
|
||||||
for (i = 0; i < a->channels || i < b->channels || i < PA_CHANNELS_MAX; i++) {
|
for (i = 0; i < a->channels && i < b->channels && i < PA_CHANNELS_MAX; i++) {
|
||||||
|
|
||||||
dest->values[i] = pa_sw_volume_multiply(
|
dest->values[i] = pa_sw_volume_multiply(
|
||||||
i < a->channels ? a->values[i] : PA_VOLUME_NORM,
|
i < a->channels ? a->values[i] : PA_VOLUME_NORM,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue