File tree Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Expand file tree Collapse file tree 1 file changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ struct PlaybackInfo {
49
49
}
50
50
51
51
#[ derive( Debug , Clone ) ]
52
- pub struct LoopState {
52
+ struct LoopState {
53
53
pub is_looping : bool ,
54
54
pub start : f64 ,
55
55
pub end : f64 ,
@@ -63,7 +63,6 @@ enum ControlMessage {
63
63
Loop ( bool ) ,
64
64
LoopStart ( f64 ) ,
65
65
LoopEnd ( f64 ) ,
66
- LoopState ( LoopState ) ,
67
66
}
68
67
69
68
/// `AudioBufferSourceNode` represents an audio source that consists of an
@@ -286,16 +285,6 @@ impl AudioBufferSourceNode {
286
285
& self . detune
287
286
}
288
287
289
- pub fn loop_state ( & self ) -> & LoopState {
290
- & self . loop_state
291
- }
292
-
293
- pub fn set_loop_state ( & mut self , value : LoopState ) {
294
- self . loop_state = value. clone ( ) ;
295
- self . registration
296
- . post_message ( ControlMessage :: LoopState ( value) ) ;
297
- }
298
-
299
288
/// Defines if the playback the [`AudioBuffer`] should be looped
300
289
pub fn loop_ ( & self ) -> bool {
301
290
self . loop_state . is_looping
@@ -374,7 +363,6 @@ impl AudioBufferSourceRenderer {
374
363
ControlMessage :: Loop ( is_looping) => self . loop_state . is_looping = * is_looping,
375
364
ControlMessage :: LoopStart ( loop_start) => self . loop_state . start = * loop_start,
376
365
ControlMessage :: LoopEnd ( loop_end) => self . loop_state . end = * loop_end,
377
- ControlMessage :: LoopState ( loop_state) => self . loop_state = loop_state. clone ( ) ,
378
366
}
379
367
}
380
368
}
You can’t perform that action at this time.
0 commit comments