1
0
Fork 0
mirror of https://github.com/LadybirdBrowser/ladybird.git synced 2025-06-11 18:20:43 +09:00

LibWeb: Pass through sample rate in OfflineAudioContext constructor

I can't actually spot in the spec where it explicitly says to pass this
through (unlike the AudioContext constructor) - but clearly this needs
to be passed through for an OfflineAudioContext to actually have a
sample rate!
This commit is contained in:
Shannon Booth 2024-05-02 00:03:32 +12:00 committed by Andreas Kling
parent 303958a803
commit 5f57596520
Notes: sideshowbarker 2024-07-17 04:49:48 +09:00
3 changed files with 4 additions and 4 deletions

View file

@ -13,8 +13,9 @@
namespace Web::WebAudio {
BaseAudioContext::BaseAudioContext(JS::Realm& realm)
BaseAudioContext::BaseAudioContext(JS::Realm& realm, float sample_rate)
: DOM::EventTarget(realm)
, m_sample_rate(sample_rate)
{
}