File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -55,7 +55,7 @@ struct PlaybackInfo {
55
55
k : f32 ,
56
56
}
57
57
58
- #[ derive( Debug , Clone ) ]
58
+ #[ derive( Debug , Clone , Copy ) ]
59
59
struct LoopState {
60
60
pub is_looping : bool ,
61
61
pub start : f64 ,
@@ -214,7 +214,7 @@ impl AudioBufferSourceNode {
214
214
buffer : None ,
215
215
detune : d_proc,
216
216
playback_rate : pr_proc,
217
- loop_state : loop_state . clone ( ) ,
217
+ loop_state,
218
218
render_state : AudioBufferRendererState :: default ( ) ,
219
219
ended_triggered : false ,
220
220
} ;
@@ -423,7 +423,7 @@ impl AudioProcessor for AudioBufferSourceRenderer {
423
423
is_looping,
424
424
start : loop_start,
425
425
end : loop_end,
426
- } = self . loop_state . clone ( ) ;
426
+ } = self . loop_state ;
427
427
428
428
// these will only be used if `loop_` is true, so no need for `Option`
429
429
let mut actual_loop_start = 0. ;
You can’t perform that action at this time.
0 commit comments