mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
LibWeb: Add BaseAudioContext.createConstantSource()
factory method
This commit is contained in:
parent
1b160044c4
commit
6cab972248
Notes:
github-actions[bot]
2025-01-03 10:14:24 +00:00
Author: https://github.com/tcl3
Commit: 6cab972248
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3102
Reviewed-by: https://github.com/shannonbooth
3 changed files with 9 additions and 1 deletions
|
@ -14,6 +14,7 @@
|
|||
#include <LibWeb/WebAudio/BiquadFilterNode.h>
|
||||
#include <LibWeb/WebAudio/ChannelMergerNode.h>
|
||||
#include <LibWeb/WebAudio/ChannelSplitterNode.h>
|
||||
#include <LibWeb/WebAudio/ConstantSourceNode.h>
|
||||
#include <LibWeb/WebIDL/Types.h>
|
||||
|
||||
namespace Web::WebAudio {
|
||||
|
@ -60,6 +61,7 @@ public:
|
|||
WebIDL::ExceptionOr<GC::Ref<AudioBuffer>> create_buffer(WebIDL::UnsignedLong number_of_channels, WebIDL::UnsignedLong length, float sample_rate);
|
||||
WebIDL::ExceptionOr<GC::Ref<AudioBufferSourceNode>> create_buffer_source();
|
||||
WebIDL::ExceptionOr<GC::Ref<ChannelMergerNode>> create_channel_merger(WebIDL::UnsignedLong number_of_inputs);
|
||||
WebIDL::ExceptionOr<GC::Ref<ConstantSourceNode>> create_constant_source();
|
||||
WebIDL::ExceptionOr<GC::Ref<ChannelSplitterNode>> create_channel_splitter(WebIDL::UnsignedLong number_of_outputs);
|
||||
WebIDL::ExceptionOr<GC::Ref<OscillatorNode>> create_oscillator();
|
||||
WebIDL::ExceptionOr<GC::Ref<DynamicsCompressorNode>> create_dynamics_compressor();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue