Bug 1152359 - Fix doppler shift calculation formula. r=padenot

This commit is contained in:
Boris Egorov 2015-04-08 21:18:54 +06:00
parent df4e4a4515
commit 024149f958

View File

@ -495,7 +495,7 @@ PannerNode::ComputeDopplerShift()
listenerProjection = -listenerProjection;
sourceProjection = -sourceProjection;
double scaledSpeedOfSound = listener->DopplerFactor() / listener->DopplerFactor();
double scaledSpeedOfSound = listener->SpeedOfSound() / listener->DopplerFactor();
listenerProjection = min(listenerProjection, scaledSpeedOfSound);
sourceProjection = min(sourceProjection, scaledSpeedOfSound);