mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-13 03:29:49 +00: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:
parent
303958a803
commit
5f57596520
Notes:
sideshowbarker
2024-07-17 04:49:48 +09:00
Author: https://github.com/shannonbooth
Commit: 5f57596520
Pull-request: https://github.com/SerenityOS/serenity/pull/24195
3 changed files with 4 additions and 4 deletions
|
@ -73,11 +73,10 @@ OfflineAudioContext::OfflineAudioContext(JS::Realm& realm, OfflineAudioContextOp
|
|||
}
|
||||
|
||||
OfflineAudioContext::OfflineAudioContext(JS::Realm& realm, WebIDL::UnsignedLong number_of_channels, WebIDL::UnsignedLong length, float sample_rate)
|
||||
: BaseAudioContext(realm)
|
||||
: BaseAudioContext(realm, sample_rate)
|
||||
, m_length(length)
|
||||
{
|
||||
(void)number_of_channels;
|
||||
(void)sample_rate;
|
||||
}
|
||||
|
||||
void OfflineAudioContext::initialize(JS::Realm& realm)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue