File tree Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Expand file tree Collapse file tree 3 files changed +6
-11
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use symphonia::{
15
15
} ;
16
16
17
17
use super :: DecoderError ;
18
- use crate :: common:: { ChannelCount , SampleRate , Sample } ;
18
+ use crate :: common:: { ChannelCount , Sample , SampleRate } ;
19
19
use crate :: { source, Source } ;
20
20
21
21
// Decoder errors are not considered fatal.
Original file line number Diff line number Diff line change @@ -4,12 +4,10 @@ use std::time::Duration;
4
4
use crate :: source:: SeekError ;
5
5
use crate :: Source ;
6
6
7
- use crate :: common:: { ChannelCount , SampleRate , Sample } ;
7
+ use crate :: common:: { ChannelCount , Sample , SampleRate } ;
8
8
use lewton:: inside_ogg:: OggStreamReader ;
9
9
use lewton:: samples:: InterleavedSamples ;
10
10
11
-
12
-
13
11
/// Decoder for an OGG file that contains Vorbis sound format.
14
12
pub struct VorbisDecoder < R >
15
13
where
@@ -34,11 +32,10 @@ where
34
32
Ok ( Self :: from_stream_reader ( stream_reader) )
35
33
}
36
34
pub fn from_stream_reader ( mut stream_reader : OggStreamReader < R > ) -> Self {
37
- let mut data =
38
- match stream_reader. read_dec_packet_generic :: < InterleavedSamples < Sample > > ( ) {
39
- Ok ( Some ( d) ) => d. samples ,
40
- _ => Vec :: new ( ) ,
41
- } ;
35
+ let mut data = match stream_reader. read_dec_packet_generic :: < InterleavedSamples < Sample > > ( ) {
36
+ Ok ( Some ( d) ) => d. samples ,
37
+ _ => Vec :: new ( ) ,
38
+ } ;
42
39
43
40
// The first packet is always empty, therefore
44
41
// we need to read the second frame to get some data
Original file line number Diff line number Diff line change @@ -10,8 +10,6 @@ use dasp_sample::Sample as _;
10
10
use dasp_sample:: I24 ;
11
11
use hound:: { SampleFormat , WavReader } ;
12
12
13
-
14
-
15
13
/// Decoder for the WAV format.
16
14
pub struct WavDecoder < R >
17
15
where
You can’t perform that action at this time.
0 commit comments