mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibWeb/WebAudio: Set all the params in PannerNode constructor
This commit is contained in:
parent
884599f1df
commit
9232dcbde5
Notes:
github-actions[bot]
2024-12-18 09:20:53 +00:00
Author: https://github.com/shlyakpavel
Commit: 9232dcbde5
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2944
Reviewed-by: https://github.com/gmta
2 changed files with 7 additions and 6 deletions
|
@ -61,12 +61,14 @@ WebIDL::ExceptionOr<GC::Ref<PannerNode>> PannerNode::construct_impl(JS::Realm& r
|
|||
|
||||
PannerNode::PannerNode(JS::Realm& realm, GC::Ref<BaseAudioContext> context, PannerOptions const& options)
|
||||
: AudioNode(realm, context)
|
||||
, m_panning_model(options.panning_model)
|
||||
, m_position_x(AudioParam::create(realm, options.position_x, NumericLimits<float>::lowest(), NumericLimits<float>::max(), Bindings::AutomationRate::ARate))
|
||||
, m_position_y(AudioParam::create(realm, options.position_y, NumericLimits<float>::lowest(), NumericLimits<float>::max(), Bindings::AutomationRate::ARate))
|
||||
, m_position_z(AudioParam::create(realm, options.position_z, NumericLimits<float>::lowest(), NumericLimits<float>::max(), Bindings::AutomationRate::ARate))
|
||||
, m_orientation_x(AudioParam::create(realm, options.orientation_x, NumericLimits<float>::lowest(), NumericLimits<float>::max(), Bindings::AutomationRate::ARate))
|
||||
, m_orientation_y(AudioParam::create(realm, options.orientation_y, NumericLimits<float>::lowest(), NumericLimits<float>::max(), Bindings::AutomationRate::ARate))
|
||||
, m_orientation_z(AudioParam::create(realm, options.orientation_z, NumericLimits<float>::lowest(), NumericLimits<float>::max(), Bindings::AutomationRate::ARate))
|
||||
, m_distance_model(options.distance_model)
|
||||
, m_ref_distance(options.ref_distance)
|
||||
, m_max_distance(options.max_distance)
|
||||
, m_rolloff_factor(options.rolloff_factor)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue