Bug 1148354 - Deprecate the doppler effect from the PannerNode. r=ehsan

This commit is contained in:
Paul Adenot 2015-04-16 15:35:19 +02:00
parent 099a8f17c2
commit ea18aad215
4 changed files with 10 additions and 3 deletions

View File

@ -40,3 +40,4 @@ DEPRECATED_OPERATION(SyncXMLHttpRequest)
DEPRECATED_OPERATION(DataContainerEvent)
DEPRECATED_OPERATION(Window_Controllers)
DEPRECATED_OPERATION(ImportXULIntoContent)
DEPRECATED_OPERATION(PannerNodeDoppler)

View File

@ -163,3 +163,5 @@ IndexedDBTransactionAbortNavigation=An IndexedDB transaction that was not yet co
WillChangeBudgetWarning=Will-change memory consumption is too high. Surface area covers %1$S pixels, budget is the document surface area multiplied by %2$S (%3$S pixels). All occurences of will-change in the document are ignored when over budget.
# LOCALIZATION NOTE: Do not translate "ServiceWorker".
HittingMaxWorkersPerDomain=A ServiceWorker could not be started immediately because other documents in the same origin are already using the maximum number of workers. The ServiceWorker is now queued and will be started after some of the other workers have completed.
# LOCALIZATION NOTE: Do no translate "setVelocity", "PannerNode", "AudioListener", "speedOfSound" and "dopplerFactor"
PannerNodeDopplerWarning=Use of setVelocity on the PannerNode and AudioListener, and speedOfSound and dopplerFactor on the AudioListener are deprecated and those members will be removed. For more help https://developer.mozilla.org/en-US/docs/Web/API/AudioListener#Deprecated_features

View File

@ -12,15 +12,18 @@
interface AudioListener {
// same as OpenAL (default 1)
// same as OpenAL (default 1)
[Deprecated="PannerNodeDoppler"]
attribute double dopplerFactor;
// in meters / second (default 343.3)
// in meters / second (default 343.3)
[Deprecated="PannerNodeDoppler"]
attribute double speedOfSound;
// Uses a 3D cartesian coordinate system
// Uses a 3D cartesian coordinate system
void setPosition(double x, double y, double z);
void setOrientation(double x, double y, double z, double xUp, double yUp, double zUp);
[Deprecated="PannerNodeDoppler"]
void setVelocity(double x, double y, double z);
};

View File

@ -29,6 +29,7 @@ interface PannerNode : AudioNode {
// Uses a 3D cartesian coordinate system
void setPosition(double x, double y, double z);
void setOrientation(double x, double y, double z);
[Deprecated="PannerNodeDoppler"]
void setVelocity(double x, double y, double z);
// Distance model and attributes