File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 51
51
- run : cargo test --doc
52
52
# Check minimal build.
53
53
- run : cargo check --tests --lib --no-default-features
54
+ # Check alternative decoders.
55
+ - run : cargo check --tests --lib --no-default-features --features minimp3
Original file line number Diff line number Diff line change 1
1
use std:: io:: { Read , Seek , SeekFrom } ;
2
2
use std:: time:: Duration ;
3
3
4
- use super :: DecoderSample ;
5
- use crate :: common:: { ChannelCount , SampleRate } ;
4
+ use crate :: common:: { ChannelCount , Sample , SampleRate } ;
6
5
use crate :: source:: SeekError ;
7
6
use crate :: Source ;
8
7
8
+ use dasp_sample:: Sample as _;
9
+
9
10
use minimp3:: Decoder ;
10
11
use minimp3:: Frame ;
11
12
use minimp3_fixed as minimp3;
@@ -93,7 +94,7 @@ impl<R> Iterator for Mp3Decoder<R>
93
94
where
94
95
R : Read + Seek ,
95
96
{
96
- type Item = DecoderSample ;
97
+ type Item = Sample ;
97
98
98
99
fn next ( & mut self ) -> Option < Self :: Item > {
99
100
let current_span_len = self . current_span_len ( ) ?;
You can’t perform that action at this time.
0 commit comments