File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -274,6 +274,7 @@ pub(crate) struct AudioParamRaw {
274
274
default_value : f32 , // immutable
275
275
min_value : f32 , // immutable
276
276
max_value : f32 , // immutable
277
+ automation_rate : AutomationRate ,
277
278
automation_rate_constrained : bool ,
278
279
// TODO Use `Weak` instead of `Arc`. The `AudioParamProcessor` is the owner.
279
280
shared_parts : Arc < AudioParamShared > ,
@@ -318,7 +319,7 @@ impl AudioNode for AudioParam {
318
319
impl AudioParam {
319
320
/// Current value of the automation rate of the AudioParam
320
321
pub fn automation_rate ( & self ) -> AutomationRate {
321
- self . raw_parts . shared_parts . load_automation_rate ( )
322
+ self . raw_parts . automation_rate
322
323
}
323
324
324
325
/// Update the current value of the automation rate of the AudioParam
@@ -331,6 +332,7 @@ impl AudioParam {
331
332
panic ! ( "InvalidStateError: automation rate cannot be changed for this param" ) ;
332
333
}
333
334
335
+ self . automation_rate = value;
334
336
self . registration ( ) . post_message ( value) ;
335
337
}
336
338
You can’t perform that action at this time.
0 commit comments