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 {
201
201
}
202
202
203
203
/// AudioParam controls an individual aspect of an AudioNode's functionality, such as volume.
204
+ #[ derive( Clone ) ]
204
205
pub struct AudioParam {
205
- registration : AudioContextRegistration ,
206
+ registration : Arc < AudioContextRegistration > ,
206
207
raw_parts : AudioParamRaw ,
207
208
}
208
209
@@ -558,7 +559,7 @@ impl AudioParam {
558
559
raw_parts : AudioParamRaw ,
559
560
) -> Self {
560
561
Self {
561
- registration,
562
+ registration : registration . into ( ) ,
562
563
raw_parts,
563
564
}
564
565
}
@@ -1602,7 +1603,7 @@ pub(crate) fn audio_param_pair(
1602
1603
let shared_parts = Arc :: new ( AudioParamShared :: new ( default_value, automation_rate) ) ;
1603
1604
1604
1605
let param = AudioParam {
1605
- registration,
1606
+ registration : registration . into ( ) ,
1606
1607
raw_parts : AudioParamRaw {
1607
1608
default_value,
1608
1609
max_value,
You can’t perform that action at this time.
0 commit comments