File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -201,8 +201,9 @@ impl AudioParamEventTimeline {
201201}
202202
203203/// AudioParam controls an individual aspect of an AudioNode's functionality, such as volume.
204+ #[ derive( Clone ) ]
204205pub struct AudioParam {
205- registration : AudioContextRegistration ,
206+ registration : Arc < AudioContextRegistration > ,
206207 raw_parts : AudioParamRaw ,
207208}
208209
@@ -558,7 +559,7 @@ impl AudioParam {
558559 raw_parts : AudioParamRaw ,
559560 ) -> Self {
560561 Self {
561- registration,
562+ registration : registration . into ( ) ,
562563 raw_parts,
563564 }
564565 }
@@ -1602,7 +1603,7 @@ pub(crate) fn audio_param_pair(
16021603 let shared_parts = Arc :: new ( AudioParamShared :: new ( default_value, automation_rate) ) ;
16031604
16041605 let param = AudioParam {
1605- registration,
1606+ registration : registration . into ( ) ,
16061607 raw_parts : AudioParamRaw {
16071608 default_value,
16081609 max_value,
You can’t perform that action at this time.
0 commit comments