LibWeb: Add BaseAudioContext.createStereoPanner() factory method

This commit is contained in:
Tim Ledbetter 2025-01-17 15:00:24 +00:00 committed by Andreas Kling
commit 5fd130b02d
Notes: github-actions[bot] 2025-01-18 09:21:37 +00:00
6 changed files with 99 additions and 5 deletions

View file

@ -18,6 +18,7 @@
#include <LibWeb/WebAudio/ConstantSourceNode.h>
#include <LibWeb/WebAudio/DelayNode.h>
#include <LibWeb/WebAudio/PeriodicWave.h>
#include <LibWeb/WebAudio/StereoPannerNode.h>
#include <LibWeb/WebIDL/Types.h>
namespace Web::WebAudio {
@ -74,6 +75,7 @@ public:
WebIDL::ExceptionOr<GC::Ref<GainNode>> create_gain();
WebIDL::ExceptionOr<GC::Ref<PannerNode>> create_panner();
WebIDL::ExceptionOr<GC::Ref<PeriodicWave>> create_periodic_wave(Vector<float> const& real, Vector<float> const& imag, Optional<PeriodicWaveConstraints> const& constraints = {});
WebIDL::ExceptionOr<GC::Ref<StereoPannerNode>> create_stereo_panner();
GC::Ref<WebIDL::Promise> decode_audio_data(GC::Root<WebIDL::BufferSource>, GC::Ptr<WebIDL::CallbackType>, GC::Ptr<WebIDL::CallbackType>);