mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 01:35:08 +02:00
LibWeb: Add BaseAudioContext.createChannelSplitter() factory method
This commit is contained in:
committed by
Tim Ledbetter
parent
e564d25ffb
commit
3eefa464ee
Notes:
github-actions[bot]
2025-01-02 11:40:24 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/3eefa464eef Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3097 Reviewed-by: https://github.com/shannonbooth ✅
@@ -91,6 +91,15 @@ WebIDL::ExceptionOr<GC::Ref<ChannelMergerNode>> BaseAudioContext::create_channel
|
||||
return ChannelMergerNode::create(realm(), *this, options);
|
||||
}
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-createchannelsplitter
|
||||
WebIDL::ExceptionOr<GC::Ref<ChannelSplitterNode>> BaseAudioContext::create_channel_splitter(WebIDL::UnsignedLong number_of_outputs)
|
||||
{
|
||||
ChannelSplitterOptions options;
|
||||
options.number_of_outputs = number_of_outputs;
|
||||
|
||||
return ChannelSplitterNode::create(realm(), *this, options);
|
||||
}
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-createoscillator
|
||||
WebIDL::ExceptionOr<GC::Ref<OscillatorNode>> BaseAudioContext::create_oscillator()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user