Small typo in AudioPannerNode.cpp
authorcommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Feb 2012 02:42:35 +0000 (02:42 +0000)
committercommit-queue@webkit.org <commit-queue@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 22 Feb 2012 02:42:35 +0000 (02:42 +0000)
https://bugs.webkit.org/show_bug.cgi?id=75890

Change to check elevation as intended instead of azimuth.

Patch by Raymond Toy <rtoy@google.com> on 2012-02-21
Reviewed by Chris Rogers.

No new tests for correction of typo.

* webaudio/AudioPannerNode.cpp:
(WebCore::AudioPannerNode::getAzimuthElevation):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@108430 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Source/WebCore/ChangeLog
Source/WebCore/webaudio/AudioPannerNode.cpp

index b14ddca..370f780 100644 (file)
@@ -1,3 +1,17 @@
+2012-02-21  Raymond Toy  <rtoy@google.com>
+
+        Small typo in AudioPannerNode.cpp
+        https://bugs.webkit.org/show_bug.cgi?id=75890
+
+        Change to check elevation as intended instead of azimuth.
+        
+        Reviewed by Chris Rogers.
+
+        No new tests for correction of typo.
+
+        * webaudio/AudioPannerNode.cpp:
+        (WebCore::AudioPannerNode::getAzimuthElevation):
+
 2012-02-21  Adam Barth  <abarth@webkit.org>
 
         Frame and Navigator shouldn't need to worry about Geolocation
index 7790b5e..1105773 100644 (file)
@@ -222,7 +222,7 @@ void AudioPannerNode::getAzimuthElevation(double* outAzimuth, double* outElevati
 
     // Elevation
     double elevation = 90.0 - 180.0 * acos(sourceListener.dot(up)) / piDouble;
-    fixNANs(azimuth); // avoid illegal values
+    fixNANs(elevation); // avoid illegal values
 
     if (elevation > 90.0)
         elevation = 180.0 - elevation;