From 030c7cbf38260a3c821d9a56a297787f445988e8 Mon Sep 17 00:00:00 2001 From: Robert O'Callahan Date: Tue, 29 Jan 2013 14:40:59 +1300 Subject: [PATCH] Bug 832788. Part 3: AudioListener DopplerFactor/SpeedOfSound should take float per WebIDL. r=ehsan --HG-- extra : rebase_source : d435b1678b09075cecf75e8da64364ec62964d00 --- content/media/webaudio/AudioListener.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/content/media/webaudio/AudioListener.h b/content/media/webaudio/AudioListener.h index 836c456bd501..ecf6e38a65cd 100644 --- a/content/media/webaudio/AudioListener.h +++ b/content/media/webaudio/AudioListener.h @@ -40,20 +40,20 @@ public: virtual JSObject* WrapObject(JSContext* aCx, JSObject* aScope, bool* aTriedToWrap); - double DopplerFactor() const + float DopplerFactor() const { return mDopplerFactor; } - void SetDopplerFactor(double aDopplerFactor) + void SetDopplerFactor(float aDopplerFactor) { mDopplerFactor = aDopplerFactor; } - double SpeedOfSound() const + float SpeedOfSound() const { return mSpeedOfSound; } - void SetSpeedOfSound(double aSpeedOfSound) + void SetSpeedOfSound(float aSpeedOfSound) { mSpeedOfSound = aSpeedOfSound; } @@ -89,8 +89,8 @@ private: ThreeDPoint mOrientation; ThreeDPoint mUpVector; ThreeDPoint mVelocity; - double mDopplerFactor; - double mSpeedOfSound; + float mDopplerFactor; + float mSpeedOfSound; }; }