LibWeb: Initialize OfflineAudioContext with correct defaults

This commit is contained in:
Tim Ledbetter 2025-01-07 23:24:10 +00:00 committed by Sam Atkins
commit 27dbe49f00
Notes: github-actions[bot] 2025-01-08 11:25:09 +00:00
11 changed files with 288 additions and 22 deletions

View file

@ -12,9 +12,10 @@ namespace Web::WebAudio {
GC_DEFINE_ALLOCATOR(AudioNode);
AudioNode::AudioNode(JS::Realm& realm, GC::Ref<BaseAudioContext> context)
AudioNode::AudioNode(JS::Realm& realm, GC::Ref<BaseAudioContext> context, WebIDL::UnsignedLong channel_count)
: DOM::EventTarget(realm)
, m_context(context)
, m_channel_count(channel_count)
{
}