File tree Expand file tree Collapse file tree 4 files changed +1
-6
lines changed Expand file tree Collapse file tree 4 files changed +1
-6
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ where
125
125
fn sample_rate ( & self ) -> SampleRate {
126
126
match * self . current_span {
127
127
Span :: Data ( SpanData { rate, .. } ) => rate,
128
- Span :: End => dbg ! ( 0 ) ,
128
+ Span :: End => 1 ,
129
129
Span :: Input ( _) => unreachable ! ( ) ,
130
130
}
131
131
}
Original file line number Diff line number Diff line change @@ -71,12 +71,10 @@ where
71
71
/// track_position after speedup's and delay's.
72
72
#[ inline]
73
73
pub fn get_pos ( & self ) -> Duration {
74
- dbg ! ( self ) ;
75
74
let seconds = self . samples_counted as f64
76
75
/ self . input . sample_rate ( ) as f64
77
76
/ self . input . channels ( ) . get ( ) as f64
78
77
+ self . offset_duration ;
79
- dbg ! ( seconds) ;
80
78
Duration :: from_secs_f64 ( seconds)
81
79
}
82
80
}
96
94
// At the end of a span add the duration of this span to
97
95
// offset_duration and start collecting samples again.
98
96
if self . parameters_changed ( ) {
99
- dbg ! ( & self ) ;
100
97
self . offset_duration += self . samples_counted as f64
101
98
/ self . current_span_sample_rate as f64
102
99
/ self . current_span_channels . get ( ) as f64 ;
Original file line number Diff line number Diff line change @@ -81,7 +81,6 @@ fn seek_results_in_correct_remaining_playtime(
81
81
82
82
let decoder = get_music ( format) ;
83
83
let total_duration = time_remaining ( decoder) ;
84
- dbg ! ( total_duration) ;
85
84
86
85
const SEEK_BEFORE_END : Duration = Duration :: from_secs ( 5 ) ;
87
86
let mut decoder = get_music ( format) ;
Original file line number Diff line number Diff line change @@ -93,7 +93,6 @@ fn fadeout() {
93
93
. take_duration ( span_duration. mul_f32 ( 1.5 ) )
94
94
. with_fadeout ( true )
95
95
. collect :: < Vec < _ > > ( ) ;
96
- dbg ! ( & fade_out) ;
97
96
assert_eq ! ( fade_out. first( ) , Some ( & 1.0 ) ) ;
98
97
// fade_out ends the step before zero
99
98
assert ! ( fade_out. last( ) . unwrap( ) > & 0.0 ) ;
You can’t perform that action at this time.
0 commit comments