Diff
Modified: trunk/LayoutTests/imported/w3c/ChangeLog (263984 => 263985)
--- trunk/LayoutTests/imported/w3c/ChangeLog 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/LayoutTests/imported/w3c/ChangeLog 2020-07-06 21:24:00 UTC (rev 263985)
@@ -1,3 +1,17 @@
+2020-07-06 Clark Wang <[email protected]>
+
+ Added PannerNode constructor according to spec
+ https://bugs.webkit.org/show_bug.cgi?id=213801
+
+ Reviewed by Chris Dumez.
+
+ Re-baselined existing tests now that new ones are passing. New ones that fail are due to accepted range
+ of values that attributes can take on, which are to be implemented in a future patch.
+
+ * web-platform-tests/webaudio/idlharness.https.window-expected.txt:
+ * web-platform-tests/webaudio/the-audio-api/the-pannernode-interface/ctor-panner-expected.txt:
+ * web-platform-tests/webaudio/the-audio-api/the-pannernode-interface/panner-distance-clamping-expected.txt:
+
2020-07-06 Rob Buis <[email protected]>
Allow setting empty host/hostname on URLs if they use file scheme
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/idlharness.https.window-expected.txt (263984 => 263985)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/idlharness.https.window-expected.txt 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/idlharness.https.window-expected.txt 2020-07-06 21:24:00 UTC (rev 263985)
@@ -903,7 +903,7 @@
FAIL AudioNode interface: new OscillatorNode(context) must inherit property "channelCountMode" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new OscillatorNode(context)')"
FAIL AudioNode interface: new OscillatorNode(context) must inherit property "channelInterpretation" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new OscillatorNode(context)')"
PASS PannerNode interface: existence and properties of interface object
-FAIL PannerNode interface object length assert_equals: wrong value for PannerNode.length expected 1 but got 0
+PASS PannerNode interface object length
PASS PannerNode interface object name
PASS PannerNode interface: existence and properties of interface prototype object
PASS PannerNode interface: existence and properties of interface prototype object's "constructor" property
@@ -924,49 +924,49 @@
PASS PannerNode interface: attribute coneOuterGain
PASS PannerNode interface: operation setPosition(float, float, float)
PASS PannerNode interface: operation setOrientation(float, float, float)
-FAIL PannerNode must be primary interface of new PannerNode(context) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL Stringification of new PannerNode(context) assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: new PannerNode(context) must inherit property "panningModel" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: new PannerNode(context) must inherit property "positionX" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: new PannerNode(context) must inherit property "positionY" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: new PannerNode(context) must inherit property "positionZ" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: new PannerNode(context) must inherit property "orientationX" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: new PannerNode(context) must inherit property "orientationY" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: new PannerNode(context) must inherit property "orientationZ" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: new PannerNode(context) must inherit property "distanceModel" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: new PannerNode(context) must inherit property "refDistance" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: new PannerNode(context) must inherit property "maxDistance" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: new PannerNode(context) must inherit property "rolloffFactor" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: new PannerNode(context) must inherit property "coneInnerAngle" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: new PannerNode(context) must inherit property "coneOuterAngle" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: new PannerNode(context) must inherit property "coneOuterGain" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: new PannerNode(context) must inherit property "setPosition(float, float, float)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: calling setPosition(float, float, float) on new PannerNode(context) with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: new PannerNode(context) must inherit property "setOrientation(float, float, float)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL PannerNode interface: calling setOrientation(float, float, float) on new PannerNode(context) with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: new PannerNode(context) must inherit property "connect(AudioNode, optional unsigned long, optional unsigned long)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: calling connect(AudioNode, optional unsigned long, optional unsigned long) on new PannerNode(context) with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: new PannerNode(context) must inherit property "connect(AudioParam, optional unsigned long)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: calling connect(AudioParam, optional unsigned long) on new PannerNode(context) with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: new PannerNode(context) must inherit property "disconnect()" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: new PannerNode(context) must inherit property "disconnect(unsigned long)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: calling disconnect(unsigned long) on new PannerNode(context) with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: new PannerNode(context) must inherit property "disconnect(AudioNode)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: calling disconnect(AudioNode) on new PannerNode(context) with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: new PannerNode(context) must inherit property "disconnect(AudioNode, unsigned long)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: calling disconnect(AudioNode, unsigned long) on new PannerNode(context) with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: new PannerNode(context) must inherit property "disconnect(AudioNode, unsigned long, unsigned long)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: calling disconnect(AudioNode, unsigned long, unsigned long) on new PannerNode(context) with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: new PannerNode(context) must inherit property "disconnect(AudioParam)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: calling disconnect(AudioParam) on new PannerNode(context) with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: new PannerNode(context) must inherit property "disconnect(AudioParam, unsigned long)" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: calling disconnect(AudioParam, unsigned long) on new PannerNode(context) with too few arguments must throw TypeError assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: new PannerNode(context) must inherit property "context" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: new PannerNode(context) must inherit property "numberOfInputs" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: new PannerNode(context) must inherit property "numberOfOutputs" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: new PannerNode(context) must inherit property "channelCount" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: new PannerNode(context) must inherit property "channelCountMode" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL AudioNode interface: new PannerNode(context) must inherit property "channelInterpretation" with the proper type assert_equals: Unexpected exception when evaluating object expected null but got object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
+PASS PannerNode must be primary interface of new PannerNode(context)
+PASS Stringification of new PannerNode(context)
+PASS PannerNode interface: new PannerNode(context) must inherit property "panningModel" with the proper type
+PASS PannerNode interface: new PannerNode(context) must inherit property "positionX" with the proper type
+PASS PannerNode interface: new PannerNode(context) must inherit property "positionY" with the proper type
+PASS PannerNode interface: new PannerNode(context) must inherit property "positionZ" with the proper type
+PASS PannerNode interface: new PannerNode(context) must inherit property "orientationX" with the proper type
+PASS PannerNode interface: new PannerNode(context) must inherit property "orientationY" with the proper type
+PASS PannerNode interface: new PannerNode(context) must inherit property "orientationZ" with the proper type
+PASS PannerNode interface: new PannerNode(context) must inherit property "distanceModel" with the proper type
+PASS PannerNode interface: new PannerNode(context) must inherit property "refDistance" with the proper type
+PASS PannerNode interface: new PannerNode(context) must inherit property "maxDistance" with the proper type
+PASS PannerNode interface: new PannerNode(context) must inherit property "rolloffFactor" with the proper type
+PASS PannerNode interface: new PannerNode(context) must inherit property "coneInnerAngle" with the proper type
+PASS PannerNode interface: new PannerNode(context) must inherit property "coneOuterAngle" with the proper type
+PASS PannerNode interface: new PannerNode(context) must inherit property "coneOuterGain" with the proper type
+PASS PannerNode interface: new PannerNode(context) must inherit property "setPosition(float, float, float)" with the proper type
+PASS PannerNode interface: calling setPosition(float, float, float) on new PannerNode(context) with too few arguments must throw TypeError
+PASS PannerNode interface: new PannerNode(context) must inherit property "setOrientation(float, float, float)" with the proper type
+PASS PannerNode interface: calling setOrientation(float, float, float) on new PannerNode(context) with too few arguments must throw TypeError
+PASS AudioNode interface: new PannerNode(context) must inherit property "connect(AudioNode, optional unsigned long, optional unsigned long)" with the proper type
+PASS AudioNode interface: calling connect(AudioNode, optional unsigned long, optional unsigned long) on new PannerNode(context) with too few arguments must throw TypeError
+PASS AudioNode interface: new PannerNode(context) must inherit property "connect(AudioParam, optional unsigned long)" with the proper type
+PASS AudioNode interface: calling connect(AudioParam, optional unsigned long) on new PannerNode(context) with too few arguments must throw TypeError
+PASS AudioNode interface: new PannerNode(context) must inherit property "disconnect()" with the proper type
+PASS AudioNode interface: new PannerNode(context) must inherit property "disconnect(unsigned long)" with the proper type
+PASS AudioNode interface: calling disconnect(unsigned long) on new PannerNode(context) with too few arguments must throw TypeError
+PASS AudioNode interface: new PannerNode(context) must inherit property "disconnect(AudioNode)" with the proper type
+PASS AudioNode interface: calling disconnect(AudioNode) on new PannerNode(context) with too few arguments must throw TypeError
+PASS AudioNode interface: new PannerNode(context) must inherit property "disconnect(AudioNode, unsigned long)" with the proper type
+PASS AudioNode interface: calling disconnect(AudioNode, unsigned long) on new PannerNode(context) with too few arguments must throw TypeError
+PASS AudioNode interface: new PannerNode(context) must inherit property "disconnect(AudioNode, unsigned long, unsigned long)" with the proper type
+PASS AudioNode interface: calling disconnect(AudioNode, unsigned long, unsigned long) on new PannerNode(context) with too few arguments must throw TypeError
+PASS AudioNode interface: new PannerNode(context) must inherit property "disconnect(AudioParam)" with the proper type
+PASS AudioNode interface: calling disconnect(AudioParam) on new PannerNode(context) with too few arguments must throw TypeError
+PASS AudioNode interface: new PannerNode(context) must inherit property "disconnect(AudioParam, unsigned long)" with the proper type
+PASS AudioNode interface: calling disconnect(AudioParam, unsigned long) on new PannerNode(context) with too few arguments must throw TypeError
+PASS AudioNode interface: new PannerNode(context) must inherit property "context" with the proper type
+PASS AudioNode interface: new PannerNode(context) must inherit property "numberOfInputs" with the proper type
+PASS AudioNode interface: new PannerNode(context) must inherit property "numberOfOutputs" with the proper type
+PASS AudioNode interface: new PannerNode(context) must inherit property "channelCount" with the proper type
+PASS AudioNode interface: new PannerNode(context) must inherit property "channelCountMode" with the proper type
+PASS AudioNode interface: new PannerNode(context) must inherit property "channelInterpretation" with the proper type
PASS PeriodicWave interface: existence and properties of interface object
FAIL PeriodicWave interface object length assert_equals: wrong value for PeriodicWave.length expected 1 but got 0
PASS PeriodicWave interface object name
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-pannernode-interface/ctor-panner-expected.txt (263984 => 263985)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-pannernode-interface/ctor-panner-expected.txt 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-pannernode-interface/ctor-panner-expected.txt 2020-07-06 21:24:00 UTC (rev 263985)
@@ -2,25 +2,116 @@
PASS # AUDIT TASK RUNNER STARTED.
PASS Executing "initialize"
PASS Executing "invalid constructor"
-FAIL Executing "default constructor" promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'node.numberOfInputs')"
-FAIL Executing "test AudioNodeOptions" promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'node.channelCount')"
-FAIL Executing "constructor with options" promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'node.panningModel')"
+FAIL Executing "default constructor" promise_test: Unhandled rejection with value: object "TypeError: undefined is not an object (evaluating 'context.listener[item.name].value')"
+PASS Executing "test AudioNodeOptions"
+PASS Executing "constructor with options"
PASS Audit report
PASS > [initialize]
PASS context = new OfflineAudioContext(...) did not throw an exception.
PASS < [initialize] All assertions passed. (total 1 assertions)
PASS > [invalid constructor]
-PASS new PannerNode() threw TypeError: "function is not a constructor (evaluating 'new window[name]()')".
-PASS new PannerNode(1) threw TypeError: "function is not a constructor (evaluating 'new window[name](1)')".
-PASS new PannerNode(context, 42) threw TypeError: "function is not a constructor (evaluating 'new window[name](context, 42)')".
+PASS new PannerNode() threw TypeError: "Not enough arguments".
+PASS new PannerNode(1) threw TypeError: "Argument 1 ('context') to the PannerNode constructor must be an instance of BaseAudioContext".
+PASS new PannerNode(context, 42) threw TypeError: "Type error".
PASS < [invalid constructor] All assertions passed. (total 3 assertions)
PASS > [default constructor]
-FAIL X node0 = new PannerNode(context) incorrectly threw TypeError: "function is not a constructor (evaluating 'new window[name](context, options.constructorOptions)')". assert_true: expected true got false
-FAIL X node0 instanceof PannerNode is not equal to true. Got false. assert_true: expected true got false
+PASS node0 = new PannerNode(context) did not throw an exception.
+PASS node0 instanceof PannerNode is equal to true.
+PASS node0.numberOfInputs is equal to 1.
+PASS node0.numberOfOutputs is equal to 1.
+PASS node0.channelCount is equal to 2.
+PASS node0.channelCountMode is equal to clamped-max.
+PASS node0.channelInterpretation is equal to speakers.
+PASS node0.panningModel is equal to equalpower.
+PASS node0.positionX.value is equal to 0.
+PASS node0.positionY.value is equal to 0.
+PASS node0.positionZ.value is equal to 0.
+PASS node0.orientationX.value is equal to 1.
+PASS node0.orientationY.value is equal to 0.
+PASS node0.orientationZ.value is equal to 0.
+PASS node0.distanceModel is equal to inverse.
+PASS node0.refDistance is equal to 1.
+PASS node0.maxDistance is equal to 10000.
+PASS node0.rolloffFactor is equal to 1.
+PASS node0.coneInnerAngle is equal to 360.
+PASS node0.coneOuterAngle is equal to 360.
+PASS node0.coneOuterGain is equal to 0.
PASS > [test AudioNodeOptions]
-FAIL X node1 = new PannerNode(c, {"channelCount":1}) incorrectly threw TypeError: "function is not a constructor (evaluating 'new PannerNode(context, options)')". assert_true: expected true got false
+PASS node1 = new PannerNode(c, {"channelCount":1}) did not throw an exception.
+PASS node1.channelCount is equal to 1.
+PASS node2 = new PannerNode(c, {"channelCount":2}) did not throw an exception.
+PASS node2.channelCount is equal to 2.
+PASS new PannerNode(c, {"channelCount":0}) threw InvalidStateError: "The object is in an invalid state.".
+PASS node.channelCount = 0 threw InvalidStateError: "The object is in an invalid state.".
+PASS node.channelCount after setting to 0 is equal to 2.
+FAIL X new PannerNode(c, {"channelCount":3}) did not throw an exception. assert_true: expected true got false
+FAIL X node.channelCount = 3 did not throw an exception. assert_true: expected true got false
+FAIL X node.channelCount after setting to 3 is not equal to 2. Got 3. assert_true: expected true got false
+PASS new PannerNode(c, {"channelCount":99}) threw InvalidStateError: "The object is in an invalid state.".
+PASS node.channelCount = 99 threw InvalidStateError: "The object is in an invalid state.".
+PASS node.channelCount after setting to 99 is equal to 2.
+PASS node3 = new PannerNode(c, {"channelCountMode":"clamped-max"}) did not throw an exception.
+PASS node3.channelCountMode is equal to clamped-max.
+PASS node4 = new PannerNode(c, {"channelCountMode":"explicit"}) did not throw an exception.
+PASS node4.channelCountMode is equal to explicit.
+FAIL X new PannerNode(c, {"channelCountMode":"max"}) did not throw an exception. assert_true: expected true got false
+FAIL X node.channelCountMode = max did not throw an exception. assert_true: expected true got false
+FAIL X node.channelCountMode after setting to max is not equal to clamped-max. Got max. assert_true: expected true got false
+FAIL X new PannerNode(c, " + JSON.stringify(options) + ") threw "InvalidStateError" instead of EcmaScript error TypeError. assert_true: expected true got false
+FAIL X node.channelCountMode = foobar incorrectly threw InvalidStateError: "The object is in an invalid state.". assert_true: expected true got false
+PASS node.channelCountMode after setting to foobar is equal to clamped-max.
+PASS node5 = new PannerNode(c, {"channelInterpretation":"speakers"}) did not throw an exception.
+PASS node5.channelInterpretation is equal to speakers.
+PASS node6 = new PannerNode(c, {"channelInterpretation":"discrete"}) did not throw an exception.
+PASS node6.channelInterpretation is equal to discrete.
+FAIL X new PannerNode(c, {"channelInterpretation":"foobar"}) threw "InvalidStateError" instead of EcmaScript error TypeError. assert_true: expected true got false
+PASS new PannerNode(c, {"maxDistance":-1}) threw RangeError: "maxDistance cannot be set to a non-positive value".
+PASS node.maxDistance = -1 threw RangeError: "maxDistance cannot be set to a non-positive value".
+PASS node.maxDistance after setting to -1 is equal to 10000.
+PASS node7 = new PannerNode(c, {"maxDistance":100}) did not throw an exception.
+PASS node7.maxDistance is equal to 100.
+PASS new PannerNode(c, {"rolloffFactor":-1}) threw RangeError: "rolloffFactor cannot be set to a negative value".
+PASS node.rolloffFactor = -1 threw RangeError: "rolloffFactor cannot be set to a negative value".
+PASS node.rolloffFactor after setting to -1 is equal to 1.
+PASS node8 = new PannerNode(c, {"rolloffFactor":0}) did not throw an exception.
+PASS node8.rolloffFactor is equal to 0.
+PASS node8 = new PannerNode(c, {"rolloffFactor":0.5}) did not throw an exception.
+PASS node8.rolloffFactor is equal to 0.5.
+PASS node8 = new PannerNode(c, {"rolloffFactor":100}) did not throw an exception.
+PASS node8.rolloffFactor is equal to 100.
+PASS new PannerNode(c, {"coneOuterGain":-1}) threw InvalidStateError: "coneOuterGain must be in [0, 1]".
+PASS node.coneOuterGain = -1 threw InvalidStateError: "coneOuterGain must be in [0, 1]".
+PASS node.coneOuterGain after setting to -1 is equal to 0.
+PASS new PannerNode(c, {"coneOuterGain":1.1}) threw InvalidStateError: "coneOuterGain must be in [0, 1]".
+PASS node.coneOuterGain = 1.1 threw InvalidStateError: "coneOuterGain must be in [0, 1]".
+PASS node.coneOuterGain after setting to 1.1 is equal to 0.
+PASS node9 = new PannerNode(c, {"coneOuterGain":0}) did not throw an exception.
+PASS node9.coneOuterGain is equal to 0.
+PASS node9 = new PannerNode(c, {"coneOuterGain":0.5}) did not throw an exception.
+PASS node9.coneOuterGain is equal to 0.5.
+PASS node9 = new PannerNode(c, {"coneOuterGain":1}) did not throw an exception.
+PASS node9.coneOuterGain is equal to 1.
+FAIL < [test AudioNodeOptions] 9 out of 54 assertions were failed. assert_true: expected true got false
PASS > [constructor with options]
-FAIL X node = new PannerNode(c, {"panningModel":"HRTF","positionX":1.4142135623730951,"positionY":2.8284271247461903,"positionZ":4.242640687119286,"orientationX":-1.4142135623730951,"orientationY":-2.8284271247461903,"orientationZ":-4.242640687119286,"distanceModel":"linear","refDistance":3.141592653589793,"maxDistance":6.283185307179586,"rolloffFactor":9.42477796076938,"coneInnerAngle":12.566370614359172,"coneOuterAngle":15.707963267948966,"coneOuterGain":0.3141592653589793}) incorrectly threw TypeError: "function is not a constructor (evaluating 'new PannerNode(context, options)')". assert_true: expected true got false
-FAIL X node instanceof PannerNode is not equal to true. Got false. assert_true: expected true got false
-FAIL # AUDIT TASK RUNNER FINISHED: 3 out of 5 tasks were failed. assert_true: expected true got false
+PASS node = new PannerNode(c, {"panningModel":"HRTF","positionX":1.4142135623730951,"positionY":2.8284271247461903,"positionZ":4.242640687119286,"orientationX":-1.4142135623730951,"orientationY":-2.8284271247461903,"orientationZ":-4.242640687119286,"distanceModel":"linear","refDistance":3.141592653589793,"maxDistance":6.283185307179586,"rolloffFactor":9.42477796076938,"coneInnerAngle":12.566370614359172,"coneOuterAngle":15.707963267948966,"coneOuterGain":0.3141592653589793}) did not throw an exception.
+PASS node instanceof PannerNode is equal to true.
+PASS node.panningModel is equal to HRTF.
+PASS node.positionX.value is equal to 1.4142135381698608.
+PASS node.positionY.value is equal to 2.8284270763397217.
+PASS node.positionZ.value is equal to 4.242640495300293.
+PASS node.orientationX.value is equal to -1.4142135381698608.
+PASS node.orientationY.value is equal to -2.8284270763397217.
+PASS node.orientationZ.value is equal to -4.242640495300293.
+PASS node.distanceModel is equal to linear.
+PASS node.refDistance is equal to 3.141592653589793.
+PASS node.maxDistance is equal to 6.283185307179586.
+PASS node.rolloffFactor is equal to 9.42477796076938.
+PASS node.coneInnerAngle is equal to 12.566370614359172.
+PASS node.coneOuterAngle is equal to 15.707963267948966.
+PASS node.coneOuterGain is equal to 0.3141592653589793.
+PASS node.channelCount is equal to 2.
+PASS node.channelCountMode is equal to clamped-max.
+PASS node.channelInterpretation is equal to speakers.
+PASS < [constructor with options] All assertions passed. (total 19 assertions)
+FAIL # AUDIT TASK RUNNER FINISHED: 1 out of 5 tasks were failed. assert_true: expected true got false
Modified: trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-pannernode-interface/panner-distance-clamping-expected.txt (263984 => 263985)
--- trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-pannernode-interface/panner-distance-clamping-expected.txt 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/LayoutTests/imported/w3c/web-platform-tests/webaudio/the-audio-api/the-pannernode-interface/panner-distance-clamping-expected.txt 2020-07-06 21:24:00 UTC (rev 263985)
@@ -1,7 +1,7 @@
PASS # AUDIT TASK RUNNER STARTED.
-FAIL Executing "ref-distance-error" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
-FAIL Executing "max-distance-error" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new PannerNode(context)')"
+PASS Executing "ref-distance-error"
+PASS Executing "max-distance-error"
FAIL Executing "min-distance" promise_test: Unhandled rejection with value: object "TypeError: function is not a constructor (evaluating 'new OscillatorNode(context, {
type: 'sawtooth',
frequency: 20 * 440,
@@ -12,14 +12,22 @@
})')"
PASS Audit report
PASS > [ref-distance-error]
-FAIL X new PannerNode(c, {refDistance: -1}) threw "TypeError" instead of EcmaScript error RangeError. assert_true: expected true got false
-FAIL X new PannerNode(c, {refDistance: 0}) incorrectly threw TypeError: "function is not a constructor (evaluating 'new PannerNode(context, nodeOptions)')". assert_true: expected true got false
-FAIL X new PannerNode(c, {refDistance: 5e-324}) incorrectly threw TypeError: "function is not a constructor (evaluating 'new PannerNode(context, nodeOptions)')". assert_true: expected true got false
+PASS new PannerNode(c, {refDistance: -1}) threw RangeError: "refDistance cannot be set to a negative value".
+PASS new PannerNode(c, {refDistance: 0}) did not throw an exception.
+PASS new PannerNode(c, {refDistance: 5e-324}) did not throw an exception.
+PASS panner.refDistance = -1 threw RangeError: "refDistance cannot be set to a negative value".
+PASS panner.refDistance = 0 did not throw an exception.
+PASS panner.refDistance = 5e-324 did not throw an exception.
+PASS < [ref-distance-error] All assertions passed. (total 6 assertions)
PASS > [max-distance-error]
-FAIL X new PannerNode(c, {maxDistance: -1}) threw "TypeError" instead of EcmaScript error RangeError. assert_true: expected true got false
-FAIL X new PannerNode(c, {maxDistance: 0}) threw "TypeError" instead of EcmaScript error RangeError. assert_true: expected true got false
-FAIL X new PannerNode(c, {maxDistance: 5e-324}) incorrectly threw TypeError: "function is not a constructor (evaluating 'new PannerNode(context, nodeOptions)')". assert_true: expected true got false
+PASS new PannerNode(c, {maxDistance: -1}) threw RangeError: "maxDistance cannot be set to a non-positive value".
+PASS new PannerNode(c, {maxDistance: 0}) threw RangeError: "maxDistance cannot be set to a non-positive value".
+PASS new PannerNode(c, {maxDistance: 5e-324}) did not throw an exception.
+PASS panner.maxDistance = -1 threw RangeError: "maxDistance cannot be set to a non-positive value".
+PASS panner.maxDistance = 0 threw RangeError: "maxDistance cannot be set to a non-positive value".
+PASS panner.maxDistance = 5e-324 did not throw an exception.
+PASS < [max-distance-error] All assertions passed. (total 6 assertions)
PASS > [min-distance]
PASS > [max-distance]
-FAIL # AUDIT TASK RUNNER FINISHED: 2 out of 4 tasks were failed. assert_true: expected true got false
+PASS # AUDIT TASK RUNNER FINISHED: 4 tasks ran successfully.
Modified: trunk/Source/WebCore/CMakeLists.txt (263984 => 263985)
--- trunk/Source/WebCore/CMakeLists.txt 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/Source/WebCore/CMakeLists.txt 2020-07-06 21:24:00 UTC (rev 263985)
@@ -454,6 +454,7 @@
Modules/webaudio/AudioDestinationNode.idl
Modules/webaudio/AudioListener.idl
Modules/webaudio/AudioNode.idl
+ Modules/webaudio/AudioNodeOptions.idl
Modules/webaudio/AudioParam.idl
Modules/webaudio/AudioProcessingEvent.idl
Modules/webaudio/BaseAudioContext.idl
@@ -472,6 +473,7 @@
Modules/webaudio/OfflineAudioContext.idl
Modules/webaudio/OscillatorNode.idl
Modules/webaudio/PannerNode.idl
+ Modules/webaudio/PannerOptions.idl
Modules/webaudio/PanningModelType.idl
Modules/webaudio/PeriodicWave.idl
Modules/webaudio/ScriptProcessorNode.idl
Modified: trunk/Source/WebCore/ChangeLog (263984 => 263985)
--- trunk/Source/WebCore/ChangeLog 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/Source/WebCore/ChangeLog 2020-07-06 21:24:00 UTC (rev 263985)
@@ -1,3 +1,37 @@
+2020-07-06 Clark Wang <[email protected]>
+
+ Added PannerNode constructor according to spec
+ https://bugs.webkit.org/show_bug.cgi?id=213801
+
+ Reviewed by Chris Dumez.
+
+ Added in new PannerNode constructor to match spec: https://www.w3.org/TR/webaudio/#dom-pannernode-pannernode.
+ Added in AudioNodeOptions and PannerOptions files. Modified some previous code in order to pass compilation.
+
+ Re-baselined existing tests now that new ones are passing. New ones that fail are due to accepted range
+ of values that attributes can take on, which are to be implemented in a future patch.
+
+ * CMakeLists.txt:
+ * DerivedSources-input.xcfilelist:
+ * DerivedSources-output.xcfilelist:
+ * DerivedSources.make:
+ * Modules/webaudio/AudioDestinationNode.h:
+ * Modules/webaudio/AudioNode.cpp:
+ (WebCore::AudioNode::AudioNode):
+ * Modules/webaudio/AudioNode.h:
+ * Modules/webaudio/AudioNodeOptions.h: Added.
+ * Modules/webaudio/AudioNodeOptions.idl: Added.
+ * Modules/webaudio/PannerNode.cpp:
+ (WebCore::PannerNode::PannerNode):
+ (WebCore::PannerNodeBase::PannerNodeBase):
+ (WebCore::PannerNode::create):
+ * Modules/webaudio/PannerNode.h:
+ * Modules/webaudio/PannerNode.idl:
+ * Modules/webaudio/PannerOptions.h: Added.
+ * Modules/webaudio/PannerOptions.idl: Added.
+ * Sources.txt:
+ * WebCore.xcodeproj/project.pbxproj:
+
2020-07-06 Simon Fraser <[email protected]>
ASSERT_NOT_REACHED() in EventRegionContext::popClip()
Modified: trunk/Source/WebCore/DerivedSources-input.xcfilelist (263984 => 263985)
--- trunk/Source/WebCore/DerivedSources-input.xcfilelist 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/Source/WebCore/DerivedSources-input.xcfilelist 2020-07-06 21:24:00 UTC (rev 263985)
@@ -303,6 +303,7 @@
$(PROJECT_DIR)/Modules/webaudio/AudioDestinationNode.idl
$(PROJECT_DIR)/Modules/webaudio/AudioListener.idl
$(PROJECT_DIR)/Modules/webaudio/AudioNode.idl
+$(PROJECT_DIR)/Modules/webaudio/AudioNodeOptions.idl
$(PROJECT_DIR)/Modules/webaudio/AudioParam.idl
$(PROJECT_DIR)/Modules/webaudio/AudioProcessingEvent.idl
$(PROJECT_DIR)/Modules/webaudio/BaseAudioContext.idl
@@ -321,6 +322,7 @@
$(PROJECT_DIR)/Modules/webaudio/OfflineAudioContext.idl
$(PROJECT_DIR)/Modules/webaudio/OscillatorNode.idl
$(PROJECT_DIR)/Modules/webaudio/PannerNode.idl
+$(PROJECT_DIR)/Modules/webaudio/PannerOptions.idl
$(PROJECT_DIR)/Modules/webaudio/PanningModelType.idl
$(PROJECT_DIR)/Modules/webaudio/PeriodicWave.idl
$(PROJECT_DIR)/Modules/webaudio/ScriptProcessorNode.idl
Modified: trunk/Source/WebCore/DerivedSources-output.xcfilelist (263984 => 263985)
--- trunk/Source/WebCore/DerivedSources-output.xcfilelist 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/Source/WebCore/DerivedSources-output.xcfilelist 2020-07-06 21:24:00 UTC (rev 263985)
@@ -163,6 +163,8 @@
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSAudioListener.h
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSAudioNode.cpp
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSAudioNode.h
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSAudioNodeOptions.cpp
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSAudioNodeOptions.h
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSAudioParam.cpp
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSAudioParam.h
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSAudioProcessingEvent.cpp
@@ -1230,6 +1232,8 @@
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPaintWorkletGlobalScope.h
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPannerNode.cpp
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPannerNode.h
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPannerOptions.cpp
+$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPannerOptions.h
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPanningModelType.cpp
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSPanningModelType.h
$(BUILT_PRODUCTS_DIR)/DerivedSources/WebCore/JSParentNode.cpp
Modified: trunk/Source/WebCore/DerivedSources.make (263984 => 263985)
--- trunk/Source/WebCore/DerivedSources.make 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/Source/WebCore/DerivedSources.make 2020-07-06 21:24:00 UTC (rev 263985)
@@ -386,6 +386,7 @@
$(WebCore)/Modules/webaudio/AudioDestinationNode.idl \
$(WebCore)/Modules/webaudio/AudioListener.idl \
$(WebCore)/Modules/webaudio/AudioNode.idl \
+ $(WebCore)/Modules/webaudio/AudioNodeOptions.idl \
$(WebCore)/Modules/webaudio/AudioParam.idl \
$(WebCore)/Modules/webaudio/AudioProcessingEvent.idl \
$(WebCore)/Modules/webaudio/BaseAudioContext.idl \
@@ -404,6 +405,7 @@
$(WebCore)/Modules/webaudio/OfflineAudioContext.idl \
$(WebCore)/Modules/webaudio/OscillatorNode.idl \
$(WebCore)/Modules/webaudio/PannerNode.idl \
+ $(WebCore)/Modules/webaudio/PannerOptions.idl \
$(WebCore)/Modules/webaudio/PanningModelType.idl \
$(WebCore)/Modules/webaudio/PeriodicWave.idl \
$(WebCore)/Modules/webaudio/ScriptProcessorNode.idl \
Modified: trunk/Source/WebCore/Modules/webaudio/AudioDestinationNode.h (263984 => 263985)
--- trunk/Source/WebCore/Modules/webaudio/AudioDestinationNode.h 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/Source/WebCore/Modules/webaudio/AudioDestinationNode.h 2020-07-06 21:24:00 UTC (rev 263985)
@@ -31,8 +31,6 @@
namespace WebCore {
-class AudioContext;
-
class AudioDestinationNode : public AudioNode, public AudioIOCallback {
WTF_MAKE_ISO_ALLOCATED(AudioDestinationNode);
public:
Modified: trunk/Source/WebCore/Modules/webaudio/AudioNode.cpp (263984 => 263985)
--- trunk/Source/WebCore/Modules/webaudio/AudioNode.cpp 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/Source/WebCore/Modules/webaudio/AudioNode.cpp 2020-07-06 21:24:00 UTC (rev 263985)
@@ -96,17 +96,11 @@
return values[static_cast<size_t>(enumerationValue)];
}
+
+// FIXME: Remove once dependencies on old constructor are removed
AudioNode::AudioNode(BaseAudioContext& context, float sampleRate)
- : m_isInitialized(false)
- , m_nodeType(NodeTypeUnknown)
- , m_context(context)
+ : m_context(context)
, m_sampleRate(sampleRate)
- , m_lastProcessingTime(-1)
- , m_lastNonSilentTime(-1)
- , m_normalRefCount(1) // start out with normal refCount == 1 (like WTF::RefCounted class)
- , m_connectionRefCount(0)
- , m_isMarkedForDeletion(false)
- , m_isDisabled(false)
#if !RELEASE_LOG_DISABLED
, m_logger(context.logger())
, m_logIdentifier(context.nextAudioNodeLogIdentifier())
@@ -125,6 +119,24 @@
#endif
}
+AudioNode::AudioNode(BaseAudioContext& context)
+ : m_context(context)
+ , m_sampleRate(context.sampleRate())
+#if !RELEASE_LOG_DISABLED
+ , m_logger(context.logger())
+ , m_logIdentifier(context.nextAudioNodeLogIdentifier())
+#endif
+{
+ ALWAYS_LOG(LOGIDENTIFIER);
+
+#if DEBUG_AUDIONODE_REFERENCES
+ if (!s_isNodeCountInitialized) {
+ s_isNodeCountInitialized = true;
+ atexit(AudioNode::printNodeCounts);
+ }
+#endif
+}
+
AudioNode::~AudioNode()
{
ALWAYS_LOG(LOGIDENTIFIER);
Modified: trunk/Source/WebCore/Modules/webaudio/AudioNode.h (263984 => 263985)
--- trunk/Source/WebCore/Modules/webaudio/AudioNode.h 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/Source/WebCore/Modules/webaudio/AudioNode.h 2020-07-06 21:24:00 UTC (rev 263985)
@@ -35,8 +35,8 @@
namespace WebCore {
-class BaseAudioContext;
class AudioNodeInput;
+struct AudioNodeOptions;
class AudioNodeOutput;
class AudioParam;
class BaseAudioContext;
@@ -59,7 +59,9 @@
public:
enum { ProcessingSizeInFrames = 128 };
+ // FIXME: Remove once dependencies on old constructor are removed.
AudioNode(BaseAudioContext&, float sampleRate);
+ AudioNode(BaseAudioContext&);
virtual ~AudioNode();
BaseAudioContext& context() { return m_context.get(); }
@@ -212,22 +214,26 @@
EventTargetInterface eventTargetInterface() const override;
ScriptExecutionContext* scriptExecutionContext() const final;
- volatile bool m_isInitialized;
- NodeType m_nodeType;
+ volatile bool m_isInitialized { false };
+ NodeType m_nodeType { NodeTypeUnknown };
Ref<BaseAudioContext> m_context;
+
+ // FIXME: Remove m_sampleRate once old constructor is removed.
float m_sampleRate;
+
Vector<std::unique_ptr<AudioNodeInput>> m_inputs;
Vector<std::unique_ptr<AudioNodeOutput>> m_outputs;
- double m_lastProcessingTime;
- double m_lastNonSilentTime;
+ double m_lastProcessingTime { -1 };
+ double m_lastNonSilentTime { -1 };
// Ref-counting
- std::atomic<int> m_normalRefCount;
- std::atomic<int> m_connectionRefCount;
+ // start out with normal refCount == 1 (like WTF::RefCounted class).
+ std::atomic<int> m_normalRefCount { 1 };
+ std::atomic<int> m_connectionRefCount { 0 };
- bool m_isMarkedForDeletion;
- bool m_isDisabled;
+ bool m_isMarkedForDeletion { false };
+ bool m_isDisabled { false };
#if DEBUG_AUDIONODE_REFERENCES
static bool s_isNodeCountInitialized;
Added: trunk/Source/WebCore/Modules/webaudio/AudioNodeOptions.h (0 => 263985)
--- trunk/Source/WebCore/Modules/webaudio/AudioNodeOptions.h (rev 0)
+++ trunk/Source/WebCore/Modules/webaudio/AudioNodeOptions.h 2020-07-06 21:24:00 UTC (rev 263985)
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#pragma once
+
+#if ENABLE(WEB_AUDIO)
+
+#include <wtf/Optional.h>
+#include <wtf/text/WTFString.h>
+
+namespace WebCore {
+
+struct AudioNodeOptions {
+ Optional<unsigned> channelCount;
+ String channelCountMode;
+ String channelInterpretation;
+};
+
+} // namespace WebCore
+
+#endif // ENABLE(WEB_AUDIO)
Added: trunk/Source/WebCore/Modules/webaudio/AudioNodeOptions.idl (0 => 263985)
--- trunk/Source/WebCore/Modules/webaudio/AudioNodeOptions.idl (rev 0)
+++ trunk/Source/WebCore/Modules/webaudio/AudioNodeOptions.idl 2020-07-06 21:24:00 UTC (rev 263985)
@@ -0,0 +1,35 @@
+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+[
+ Conditional=WEB_AUDIO,
+] dictionary AudioNodeOptions {
+ unsigned long channelCount;
+
+ // FIXME: Should be updated to use ChannelCountMode enum type.
+ DOMString channelCountMode;
+
+ // FIXME: Should be updated to use ChannelInterpretation enum type.
+ DOMString channelInterpretation;
+};
Modified: trunk/Source/WebCore/Modules/webaudio/PannerNode.cpp (263984 => 263985)
--- trunk/Source/WebCore/Modules/webaudio/PannerNode.cpp 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/Source/WebCore/Modules/webaudio/PannerNode.cpp 2020-07-06 21:24:00 UTC (rev 263985)
@@ -48,15 +48,16 @@
x = 0.0;
}
+// FIXME: Remove once dependencies on old constructor are removed.
PannerNodeBase::PannerNodeBase(BaseAudioContext& context, float sampleRate)
: AudioNode(context, sampleRate)
{
}
+// FIXME: Remove once dependencies on old constructor are removed.
PannerNode::PannerNode(BaseAudioContext& context, float sampleRate)
: PannerNodeBase(context, sampleRate)
, m_panningModel(PanningModelType::HRTF)
- , m_lastGain(-1.0)
, m_positionX(AudioParam::create(context, "positionX"_s, 0, -FLT_MAX, FLT_MAX))
, m_positionY(AudioParam::create(context, "positionY"_s, 0, -FLT_MAX, FLT_MAX))
, m_positionZ(AudioParam::create(context, "positionZ"_s, 0, -FLT_MAX, FLT_MAX))
@@ -63,7 +64,6 @@
, m_orientationX(AudioParam::create(context, "orientationX"_s, 1, -FLT_MAX, FLT_MAX))
, m_orientationY(AudioParam::create(context, "orientationY"_s, 0, -FLT_MAX, FLT_MAX))
, m_orientationZ(AudioParam::create(context, "orientationZ"_s, 0, -FLT_MAX, FLT_MAX))
- , m_connectionCount(0)
{
setNodeType(NodeTypePanner);
@@ -84,6 +84,73 @@
initialize();
}
+PannerNodeBase::PannerNodeBase(BaseAudioContext& context)
+ : AudioNode(context)
+{
+}
+
+ExceptionOr<Ref<PannerNode>> PannerNode::create(BaseAudioContext& context, const PannerOptions& options)
+{
+ auto panner = adoptRef(*new PannerNode(context, options));
+
+ auto result = panner->setMaxDistance(options.maxDistance);
+ if (result.hasException())
+ return result.releaseException();
+
+ result = panner->setRefDistance(options.refDistance);
+ if (result.hasException())
+ return result.releaseException();
+
+ result = panner->setRolloffFactor(options.rolloffFactor);
+ if (result.hasException())
+ return result.releaseException();
+
+ result = panner->setConeOuterGain(options.coneOuterGain);
+ if (result.hasException())
+ return result.releaseException();
+
+ result = panner->setChannelCount(options.channelCount.valueOr(2));
+ if (result.hasException())
+ return result.releaseException();
+
+ result = panner->setChannelCountMode(options.channelCountMode.isNull() ? "clamped-max"_str : options.channelCountMode);
+ if (result.hasException())
+ return result.releaseException();
+
+ result = panner->setChannelInterpretation(options.channelInterpretation.isNull() ? "speakers"_str : options.channelInterpretation);
+ if (result.hasException())
+ return result.releaseException();
+
+ return WTFMove(panner);
+}
+
+PannerNode::PannerNode(BaseAudioContext& context, const PannerOptions& options)
+ : PannerNodeBase(context)
+ , m_panningModel(options.panningModel)
+ , m_distanceGain(AudioParam::create(context, "distanceGain", 1.0, 0.0, 1.0))
+ , m_coneGain(AudioParam::create(context, "coneGain", 1.0, 0.0, 1.0))
+ , m_positionX(AudioParam::create(context, "positionX"_s, options.positionX, -FLT_MAX, FLT_MAX))
+ , m_positionY(AudioParam::create(context, "positionY"_s, options.positionY, -FLT_MAX, FLT_MAX))
+ , m_positionZ(AudioParam::create(context, "positionZ"_s, options.positionZ, -FLT_MAX, FLT_MAX))
+ , m_orientationX(AudioParam::create(context, "orientationX"_s, options.orientationX, -FLT_MAX, FLT_MAX))
+ , m_orientationY(AudioParam::create(context, "orientationY"_s, options.orientationY, -FLT_MAX, FLT_MAX))
+ , m_orientationZ(AudioParam::create(context, "orientationZ"_s, options.orientationZ, -FLT_MAX, FLT_MAX))
+ // Load the HRTF database asynchronously so we don't block the _javascript_ thread while creating the HRTF database.
+ , m_hrtfDatabaseLoader(HRTFDatabaseLoader::createAndLoadAsynchronouslyIfNecessary(context.sampleRate()))
+{
+ setDistanceModel(options.distanceModel);
+ setConeInnerAngle(options.coneInnerAngle);
+ setConeOuterAngle(options.coneOuterAngle);
+ setNodeType(NodeTypePanner);
+
+ addInput(makeUnique<AudioNodeInput>(this));
+ addOutput(makeUnique<AudioNodeOutput>(this, 2));
+
+ // FIXME: Set PannerNode specific channelCount, channelCountMode, channelInterpretation here.
+
+ initialize();
+}
+
PannerNode::~PannerNode()
{
uninitialize();
Modified: trunk/Source/WebCore/Modules/webaudio/PannerNode.h (263984 => 263985)
--- trunk/Source/WebCore/Modules/webaudio/PannerNode.h 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/Source/WebCore/Modules/webaudio/PannerNode.h 2020-07-06 21:24:00 UTC (rev 263985)
@@ -34,6 +34,7 @@
#include "Distance.h"
#include "FloatPoint3D.h"
#include "Panner.h"
+#include "PannerOptions.h"
#include <memory>
#include <wtf/HashSet.h>
#include <wtf/Lock.h>
@@ -41,6 +42,7 @@
namespace WebCore {
class HRTFDatabaseLoader;
+class BaseAudioContext;
class PannerNodeBase : public AudioNode {
public:
@@ -49,7 +51,10 @@
virtual float dopplerRate() = 0;
protected:
+
+ // FIXME: Remove once dependencies on old constructor are removed
PannerNodeBase(BaseAudioContext&, float sampleRate);
+ PannerNodeBase(BaseAudioContext&);
};
// PannerNode is an AudioNode with one input and one output.
@@ -62,11 +67,14 @@
class PannerNode final : public PannerNodeBase {
WTF_MAKE_ISO_ALLOCATED(PannerNode);
public:
+ // FIXME: Remove once dependencies on old constructor are removed
static Ref<PannerNode> create(BaseAudioContext& context, float sampleRate)
{
return adoptRef(*new PannerNode(context, sampleRate));
}
-
+
+ static ExceptionOr<Ref<PannerNode>> create(BaseAudioContext&, const PannerOptions& = { });
+
virtual ~PannerNode();
// AudioNode
@@ -131,7 +139,9 @@
double latencyTime() const override { return m_panner ? m_panner->latencyTime() : 0; }
private:
+ // FIXME: Remove once dependencies on old constructor are removed
PannerNode(BaseAudioContext&, float sampleRate);
+ PannerNode(BaseAudioContext&, const PannerOptions&);
// Returns the combined distance and cone gain attenuation.
float distanceConeGain();
@@ -148,7 +158,7 @@
RefPtr<AudioParam> m_coneGain;
DistanceEffect m_distanceEffect;
ConeEffect m_coneEffect;
- float m_lastGain;
+ float m_lastGain { -1.0 };
Ref<AudioParam> m_positionX;
Ref<AudioParam> m_positionY;
@@ -161,7 +171,7 @@
// HRTF Database loader
RefPtr<HRTFDatabaseLoader> m_hrtfDatabaseLoader;
- unsigned m_connectionCount;
+ unsigned m_connectionCount { 0 };
// Synchronize process() and setPanningModel() which can change the panner.
mutable Lock m_pannerMutex;
Modified: trunk/Source/WebCore/Modules/webaudio/PannerNode.idl (263984 => 263985)
--- trunk/Source/WebCore/Modules/webaudio/PannerNode.idl 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/Source/WebCore/Modules/webaudio/PannerNode.idl 2020-07-06 21:24:00 UTC (rev 263985)
@@ -27,6 +27,8 @@
JSGenerateToJSObject,
EnabledBySetting=ModernUnprefixedWebAudio,
] interface PannerNode : AudioNode {
+ [MayThrowException] constructor (BaseAudioContext context, optional PannerOptions options);
+
// Default model for stereo is equalpower
attribute PanningModelType panningModel;
Added: trunk/Source/WebCore/Modules/webaudio/PannerOptions.h (0 => 263985)
--- trunk/Source/WebCore/Modules/webaudio/PannerOptions.h (rev 0)
+++ trunk/Source/WebCore/Modules/webaudio/PannerOptions.h 2020-07-06 21:24:00 UTC (rev 263985)
@@ -0,0 +1,55 @@
+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#pragma once
+
+#if ENABLE(WEB_AUDIO)
+
+#include "AudioNodeOptions.h"
+#include "DistanceModelType.h"
+#include "PanningModelType.h"
+
+namespace WebCore {
+
+struct PannerOptions : AudioNodeOptions {
+ PanningModelType panningModel = PanningModelType::Equalpower;
+ DistanceModelType distanceModel = DistanceModelType::Inverse;
+ float positionX = 0;
+ float positionY = 0;
+ float positionZ = 0;
+ float orientationX = 1;
+ float orientationY = 0;
+ float orientationZ = 0;
+ double refDistance = 1;
+ double maxDistance = 10000;
+ double rolloffFactor = 1;
+ double coneInnerAngle = 360;
+ double coneOuterAngle = 360;
+ double coneOuterGain = 0;
+};
+
+} // namespace WebCore
+
+#endif // ENABLE(WEB_AUDIO)
Added: trunk/Source/WebCore/Modules/webaudio/PannerOptions.idl (0 => 263985)
--- trunk/Source/WebCore/Modules/webaudio/PannerOptions.idl (rev 0)
+++ trunk/Source/WebCore/Modules/webaudio/PannerOptions.idl 2020-07-06 21:24:00 UTC (rev 263985)
@@ -0,0 +1,42 @@
+/*
+ * Copyright (C) 2020 Apple Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ *
+ * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
+ * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
+ * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
+ * THE POSSIBILITY OF SUCH DAMAGE.
+ */
+[
+ Conditional=WEB_AUDIO,
+] dictionary PannerOptions : AudioNodeOptions {
+ PanningModelType panningModel = "equalpower";
+ DistanceModelType distanceModel = "inverse";
+ float positionX = 0;
+ float positionY = 0;
+ float positionZ = 0;
+ float orientationX = 1;
+ float orientationY = 0;
+ float orientationZ = 0;
+ double refDistance = 1;
+ double maxDistance = 10000;
+ double rolloffFactor = 1;
+ double coneInnerAngle = 360;
+ double coneOuterAngle = 360;
+ double coneOuterGain = 0;
+};
Modified: trunk/Source/WebCore/Sources.txt (263984 => 263985)
--- trunk/Source/WebCore/Sources.txt 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/Source/WebCore/Sources.txt 2020-07-06 21:24:00 UTC (rev 263985)
@@ -2632,6 +2632,7 @@
JSAudioDestinationNode.cpp
JSAudioListener.cpp
JSAudioNode.cpp
+JSAudioNodeOptions.cpp
JSAudioParam.cpp
JSAudioProcessingEvent.cpp
JSAudioTrack.cpp
@@ -3126,6 +3127,7 @@
JSPaintRenderingContext2D.cpp
JSPaintWorkletGlobalScope.cpp
JSPannerNode.cpp
+JSPannerOptions.cpp
JSPanningModelType.cpp
JSParentNode.cpp
JSPath2D.cpp
Modified: trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj (263984 => 263985)
--- trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2020-07-06 20:34:17 UTC (rev 263984)
+++ trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj 2020-07-06 21:24:00 UTC (rev 263985)
@@ -5038,6 +5038,8 @@
E58B45BA20AD07DD00991025 /* DataListButtonElement.h in Headers */ = {isa = PBXBuildFile; fileRef = E58B45B820AD07DD00991025 /* DataListButtonElement.h */; };
E59DD4B821098287003C8B47 /* ListButtonArrow.png in Resources */ = {isa = PBXBuildFile; fileRef = E59DD4B721098285003C8B47 /* ListButtonArrow.png */; };
E5BA7D63151437CA00FE1E3F /* LengthFunctions.h in Headers */ = {isa = PBXBuildFile; fileRef = E5BA7D62151437CA00FE1E3F /* LengthFunctions.h */; settings = {ATTRIBUTES = (Private, ); }; };
+ E71467B324ABAEF200FB2F50 /* AudioNodeOptions.h in Headers */ = {isa = PBXBuildFile; fileRef = E71467B124ABAEF100FB2F50 /* AudioNodeOptions.h */; };
+ E71467B624ABAF1D00FB2F50 /* PannerOptions.h in Headers */ = {isa = PBXBuildFile; fileRef = E71467B524ABAF1D00FB2F50 /* PannerOptions.h */; };
EBE5B226245A26EF003A5A88 /* SQLiteStatementAutoResetScope.h in Headers */ = {isa = PBXBuildFile; fileRef = EBE5B224245A26EE003A5A88 /* SQLiteStatementAutoResetScope.h */; settings = {ATTRIBUTES = (Private, ); }; };
EBF5121C1696496C0056BD25 /* JSTypeConversions.cpp in Sources */ = {isa = PBXBuildFile; fileRef = EBF5121A1696496C0056BD25 /* JSTypeConversions.cpp */; };
EBF5121D1696496C0056BD25 /* JSTypeConversions.h in Headers */ = {isa = PBXBuildFile; fileRef = EBF5121B1696496C0056BD25 /* JSTypeConversions.h */; };
@@ -15774,6 +15776,10 @@
E58B45B820AD07DD00991025 /* DataListButtonElement.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = DataListButtonElement.h; sourceTree = "<group>"; };
E59DD4B721098285003C8B47 /* ListButtonArrow.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = ListButtonArrow.png; sourceTree = "<group>"; };
E5BA7D62151437CA00FE1E3F /* LengthFunctions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LengthFunctions.h; sourceTree = "<group>"; };
+ E71467B124ABAEF100FB2F50 /* AudioNodeOptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AudioNodeOptions.h; sourceTree = "<group>"; };
+ E71467B424ABAF0B00FB2F50 /* AudioNodeOptions.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = AudioNodeOptions.idl; sourceTree = "<group>"; };
+ E71467B524ABAF1D00FB2F50 /* PannerOptions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = PannerOptions.h; sourceTree = "<group>"; };
+ E71467B724ABAF2C00FB2F50 /* PannerOptions.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = PannerOptions.idl; sourceTree = "<group>"; };
EB081CD81696084400553730 /* TypeConversions.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = TypeConversions.h; sourceTree = "<group>"; };
EB081CD91696084400553730 /* TypeConversions.idl */ = {isa = PBXFileReference; lastKnownFileType = text; path = TypeConversions.idl; sourceTree = "<group>"; };
EBE5B224245A26EE003A5A88 /* SQLiteStatementAutoResetScope.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SQLiteStatementAutoResetScope.h; sourceTree = "<group>"; };
@@ -29323,6 +29329,8 @@
FD315FCA12B0267500C1A359 /* AudioNode.idl */,
FD315FCB12B0267500C1A359 /* AudioNodeInput.cpp */,
FD315FCC12B0267500C1A359 /* AudioNodeInput.h */,
+ E71467B124ABAEF100FB2F50 /* AudioNodeOptions.h */,
+ E71467B424ABAF0B00FB2F50 /* AudioNodeOptions.idl */,
FD315FCD12B0267500C1A359 /* AudioNodeOutput.cpp */,
FD315FCE12B0267500C1A359 /* AudioNodeOutput.h */,
FD315FD212B0267500C1A359 /* AudioParam.cpp */,
@@ -29399,6 +29407,8 @@
FD315FCF12B0267500C1A359 /* PannerNode.cpp */,
FD315FD012B0267500C1A359 /* PannerNode.h */,
FD315FD112B0267500C1A359 /* PannerNode.idl */,
+ E71467B524ABAF1D00FB2F50 /* PannerOptions.h */,
+ E71467B724ABAF2C00FB2F50 /* PannerOptions.idl */,
83040280249A7A5C00A90D8D /* PanningModelType.h */,
83040281249A7A5D00A90D8D /* PanningModelType.idl */,
FD581FB11520F93B003A7A75 /* PeriodicWave.cpp */,
@@ -29839,6 +29849,7 @@
416A06A123CCAD0300347109 /* AudioMediaStreamTrackRenderer.h in Headers */,
FD31601312B0267600C1A359 /* AudioNode.h in Headers */,
FD31601612B0267600C1A359 /* AudioNodeInput.h in Headers */,
+ E71467B324ABAEF200FB2F50 /* AudioNodeOptions.h in Headers */,
FD31601812B0267600C1A359 /* AudioNodeOutput.h in Headers */,
FD31601D12B0267600C1A359 /* AudioParam.h in Headers */,
FD359190138DB22000E1EBEC /* AudioParamTimeline.h in Headers */,
@@ -32493,6 +32504,7 @@
A80E6CFB0A1989CA007FB8C5 /* Pair.h in Headers */,
FD3160A312B026F700C1A359 /* Panner.h in Headers */,
FD31601A12B0267600C1A359 /* PannerNode.h in Headers */,
+ E71467B624ABAF1D00FB2F50 /* PannerOptions.h in Headers */,
83040282249A7A5F00A90D8D /* PanningModelType.h in Headers */,
A18890AF1AA13F250026C301 /* ParentalControlsContentFilter.h in Headers */,
CDCD41E81C3DDB0A00965D99 /* ParsedContentRange.h in Headers */,