mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-26 23:23:33 +00:00
Bug 832788. Part 3: AudioListener DopplerFactor/SpeedOfSound should take float per WebIDL. r=ehsan
--HG-- extra : rebase_source : d435b1678b09075cecf75e8da64364ec62964d00
This commit is contained in:
parent
cb6d196d28
commit
030c7cbf38
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user