mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +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
|
@ -20,6 +20,7 @@
|
|||
#include <LibWeb/WebAudio/DynamicsCompressorNode.h>
|
||||
#include <LibWeb/WebAudio/GainNode.h>
|
||||
#include <LibWeb/WebAudio/OscillatorNode.h>
|
||||
#include <LibWeb/WebAudio/PannerNode.h>
|
||||
#include <LibWeb/WebIDL/AbstractOperations.h>
|
||||
#include <LibWeb/WebIDL/Promise.h>
|
||||
|
||||
|
@ -111,6 +112,13 @@ WebIDL::ExceptionOr<GC::Ref<GainNode>> BaseAudioContext::create_gain()
|
|||
return GainNode::create(realm(), *this);
|
||||
}
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-createpanner
|
||||
WebIDL::ExceptionOr<GC::Ref<PannerNode>> BaseAudioContext::create_panner()
|
||||
{
|
||||
// Factory method for a PannerNode.
|
||||
return PannerNode::create(realm(), *this);
|
||||
}
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-createbuffer
|
||||
WebIDL::ExceptionOr<void> BaseAudioContext::verify_audio_options_inside_nominal_range(JS::Realm& realm, WebIDL::UnsignedLong number_of_channels, WebIDL::UnsignedLong length, float sample_rate)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue