LibWeb: Implement BaseAudioContext.createBuffer

This is a simple factory function which effectively just calls the
AudioBuffer constructor.
This commit is contained in:
Shannon Booth 2024-05-26 11:56:11 +12:00 committed by Andreas Kling
parent 17ae65cedc
commit 71ccd8ad25
Notes: sideshowbarker 2024-07-17 06:35:16 +09:00
6 changed files with 19 additions and 1 deletions

View file

@ -47,6 +47,7 @@ public:
static WebIDL::ExceptionOr<void> verify_audio_options_inside_nominal_range(JS::Realm&, WebIDL::UnsignedLong number_of_channels, WebIDL::UnsignedLong length, float sample_rate);
WebIDL::ExceptionOr<JS::NonnullGCPtr<AudioBuffer>> create_buffer(WebIDL::UnsignedLong number_of_channels, WebIDL::UnsignedLong length, float sample_rate);
WebIDL::ExceptionOr<JS::NonnullGCPtr<OscillatorNode>> create_oscillator();
WebIDL::ExceptionOr<JS::NonnullGCPtr<DynamicsCompressorNode>> create_dynamics_compressor();