Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1690)

Unified Diff: Source/platform/audio/EqualPowerPanner.cpp

Issue 170453004: Add constant twoPiDouble/twoPiFloat to MathExtras.h (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: add constant values to header Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/platform/audio/DynamicsCompressorKernel.cpp ('k') | Source/platform/audio/FFTFrame.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/audio/EqualPowerPanner.cpp
diff --git a/Source/platform/audio/EqualPowerPanner.cpp b/Source/platform/audio/EqualPowerPanner.cpp
index d701db8d248ff5a90a81f2f0a5872d72b52a4c5d..1c7357bec5167c2933bc473d36678547b8fae670 100644
--- a/Source/platform/audio/EqualPowerPanner.cpp
+++ b/Source/platform/audio/EqualPowerPanner.cpp
@@ -101,8 +101,8 @@ void EqualPowerPanner::pan(double azimuth, double /*elevation*/, const AudioBus*
}
}
- desiredGainL = cos(0.5 * piDouble * desiredPanPosition);
- desiredGainR = sin(0.5 * piDouble * desiredPanPosition);
+ desiredGainL = cos(piOverTwoDouble * desiredPanPosition);
+ desiredGainR = sin(piOverTwoDouble * desiredPanPosition);
// Don't de-zipper on first render call.
if (m_isFirstRender) {
« no previous file with comments | « Source/platform/audio/DynamicsCompressorKernel.cpp ('k') | Source/platform/audio/FFTFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698