mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb/WebAudio: Add BaseAudioContext.createDelay()
factory method
This commit is contained in:
parent
6c4c925f02
commit
911cd4aefd
Notes:
github-actions[bot]
2025-01-08 15:33:01 +00:00
Author: https://github.com/tcl3
Commit: 911cd4aefd
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3125
3 changed files with 12 additions and 1 deletions
|
@ -96,6 +96,15 @@ WebIDL::ExceptionOr<GC::Ref<ConstantSourceNode>> BaseAudioContext::create_consta
|
|||
return ConstantSourceNode::create(realm(), *this);
|
||||
}
|
||||
|
||||
// https://webaudio.github.io/web-audio-api/#dom-baseaudiocontext-createdelay
|
||||
WebIDL::ExceptionOr<GC::Ref<DelayNode>> BaseAudioContext::create_delay(double max_delay_time)
|
||||
{
|
||||
DelayOptions options;
|
||||
options.max_delay_time = max_delay_time;
|
||||
|
||||
return DelayNode::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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue