mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1152359 - Fix doppler shift calculation formula. r=padenot
This commit is contained in:
parent
df4e4a4515
commit
024149f958
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user