From 38934a6ca7948b1a719b92a9c65fb177050b9533 Mon Sep 17 00:00:00 2001 From: "commit-queue@webkit.org" Date: Wed, 22 Feb 2012 02:42:35 +0000 Subject: [PATCH] Small typo in AudioPannerNode.cpp https://bugs.webkit.org/show_bug.cgi?id=75890 Change to check elevation as intended instead of azimuth. Patch by Raymond Toy 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 | 14 ++++++++++++++ Source/WebCore/webaudio/AudioPannerNode.cpp | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/Source/WebCore/ChangeLog b/Source/WebCore/ChangeLog index b14ddca..370f780 100644 --- a/Source/WebCore/ChangeLog +++ b/Source/WebCore/ChangeLog @@ -1,3 +1,17 @@ +2012-02-21 Raymond Toy + + 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 Frame and Navigator shouldn't need to worry about Geolocation diff --git a/Source/WebCore/webaudio/AudioPannerNode.cpp b/Source/WebCore/webaudio/AudioPannerNode.cpp index 7790b5e..1105773 100644 --- a/Source/WebCore/webaudio/AudioPannerNode.cpp +++ b/Source/WebCore/webaudio/AudioPannerNode.cpp @@ -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; -- 2.7.4