mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-01 16:02:53 +00:00
LibWeb: Implement BaseAudioContext.createBuffer
This is a simple factory function which effectively just calls the AudioBuffer constructor.
This commit is contained in:
parent
17ae65cedc
commit
71ccd8ad25
Notes:
sideshowbarker
2024-07-17 06:35:16 +09:00
Author: https://github.com/shannonbooth
Commit: 71ccd8ad25
Pull-request: https://github.com/SerenityOS/serenity/pull/24447
6 changed files with 19 additions and 1 deletions
|
@ -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();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue