mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 864609 - Take the panner node's input chunk volume into account; r=padenot
--HG-- extra : rebase_source : 4ccebeb02cd8a52721b5bff5f5c77f9a7201312b
This commit is contained in:
parent
7b3517171c
commit
960b4e84ff
@ -278,8 +278,8 @@ PannerNodeEngine::EqualPowerPanningFunction(const AudioChunk& aInput,
|
||||
distanceGain = (this->*mDistanceModelFunction)(distance);
|
||||
|
||||
// Actually compute the left and right gain.
|
||||
gainL = cos(0.5 * M_PI * normalizedAzimuth);
|
||||
gainR = sin(0.5 * M_PI * normalizedAzimuth);
|
||||
gainL = cos(0.5 * M_PI * normalizedAzimuth) * aInput.mVolume;
|
||||
gainR = sin(0.5 * M_PI * normalizedAzimuth) * aInput.mVolume;
|
||||
|
||||
// Compute the output.
|
||||
if (inputChannels == 1) {
|
||||
|
Loading…
Reference in New Issue
Block a user