mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 03:37:53 +00:00
LibWeb: Validate AudioParam context in AudioNode::connect()
An exception is now thown if an `AudioNode` attempts to connect to an `AudioParam` from a different `BaseAudioContext`.
This commit is contained in:
committed by
Tim Ledbetter
parent
2edd0812ca
commit
5c57acf140
@@ -29,7 +29,7 @@ namespace Web::WebAudio {
|
||||
BaseAudioContext::BaseAudioContext(JS::Realm& realm, float sample_rate)
|
||||
: DOM::EventTarget(realm)
|
||||
, m_sample_rate(sample_rate)
|
||||
, m_listener(AudioListener::create(realm))
|
||||
, m_listener(AudioListener::create(realm, *this))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user