Bug 864609 - Take the panner node's input chunk volume into account; r=padenot

--HG--
extra : rebase_source : 4ccebeb02cd8a52721b5bff5f5c77f9a7201312b
This commit is contained in:
Ehsan Akhgari 2013-04-22 22:07:49 -04:00
parent 7b3517171c
commit 960b4e84ff

View File

@ -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) {