mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-04 13:29:59 -05:00
We filled the volume with the wrong channel count (we used the input, not
the output) causing static. Also swapped the comments since they were misplaced. git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@636 fefdeb5f-60dc-0310-8127-8f9354f1896f
This commit is contained in:
parent
528d15095d
commit
3ef4970142
1 changed files with 3 additions and 4 deletions
|
|
@ -262,11 +262,10 @@ finish:
|
||||||
* ourselves, or if this can be done by the sink for us */
|
* ourselves, or if this can be done by the sink for us */
|
||||||
|
|
||||||
if (do_volume_adj_here)
|
if (do_volume_adj_here)
|
||||||
/* We've both the same channel map, so let's have the sink do the adjustment for us*/
|
|
||||||
|
|
||||||
pa_cvolume_reset(volume, i->sample_spec.channels);
|
|
||||||
else
|
|
||||||
/* We had different channel maps, so we already did the adjustment */
|
/* We had different channel maps, so we already did the adjustment */
|
||||||
|
pa_cvolume_reset(volume, i->sink->sample_spec.channels);
|
||||||
|
else
|
||||||
|
/* We've both the same channel map, so let's have the sink do the adjustment for us*/
|
||||||
*volume = i->volume;
|
*volume = i->volume;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue