mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
LibWeb/WebAudio: Add BaseAudioContext.createDelay() factory method
This commit is contained in:
committed by
Tim Ledbetter
parent
6c4c925f02
commit
911cd4aefd
Notes:
github-actions[bot]
2025-01-08 15:33:01 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/911cd4aefd0 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3125
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user