mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-12 20:42:21 +00:00
LibWeb/WebAudio: Implement BaseAudioContext#createPanner
Required by Unity Web games.
This commit is contained in:
parent
4f691c2410
commit
3063be11a9
Notes:
github-actions[bot]
2024-12-17 12:39:24 +00:00
Author: https://github.com/Lubrsi
Commit: 3063be11a9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2942
Reviewed-by: https://github.com/gmta ✅
5 changed files with 156 additions and 1 deletions
46
Tests/LibWeb/Text/expected/WebAudio/PannerNode.txt
Normal file
46
Tests/LibWeb/Text/expected/WebAudio/PannerNode.txt
Normal file
|
@ -0,0 +1,46 @@
|
|||
PannerNode
|
||||
AudioNode
|
||||
EventTarget
|
||||
Object
|
||||
[object AudioParam] current: 0, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: -52, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: 100000, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: -22051, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: 0, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: -52, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: 100000, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: -22051, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: 0, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: -52, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: 100000, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: -22051, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: 1, default: 1, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: -52, default: 1, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: 100000, default: 1, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: -22051, default: 1, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: 0, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: -52, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: 100000, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: -22051, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: 0, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: -52, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: 100000, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
[object AudioParam] current: -22051, default: 0, min: -3.4028234663852886e+38, max: 3.4028234663852886e+38, rate: a-rate
|
||||
default panningModel: equalpower
|
||||
default distanceModel: inverse
|
||||
default refDistance: 1
|
||||
default maxDistance: 10000
|
||||
default rolloffFactor: 1
|
||||
default coneInnerAngle: 360
|
||||
default coneOuterAngle: 360
|
||||
default coneOuterGain: 0
|
||||
Did throw RangeError: refDistance cannot be negative
|
||||
Did throw RangeError: rolloffFactor cannot be negative
|
||||
Did throw RangeError: maxDistance cannot be negative
|
||||
Did throw InvalidStateError: coneOuterGain must be in the range of [0, 1]
|
||||
Did throw InvalidStateError: coneOuterGain must be in the range of [0, 1]
|
||||
Did throw RangeError: refDistance cannot be negative
|
||||
Did throw RangeError: rolloffFactor cannot be negative
|
||||
Did throw RangeError: maxDistance cannot be negative
|
||||
Did throw InvalidStateError: coneOuterGain must be in the range of [0, 1]
|
||||
Did throw InvalidStateError: coneOuterGain must be in the range of [0, 1]
|
Loading…
Add table
Add a link
Reference in a new issue