File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use symphonia::{
1515} ;
1616
1717use super :: DecoderError ;
18- use crate :: common:: { ChannelCount , SampleRate , Sample } ;
18+ use crate :: common:: { ChannelCount , Sample , SampleRate } ;
1919use crate :: { source, Source } ;
2020
2121// Decoder errors are not considered fatal.
Original file line number Diff line number Diff line change @@ -4,12 +4,10 @@ use std::time::Duration;
44use crate :: source:: SeekError ;
55use crate :: Source ;
66
7- use crate :: common:: { ChannelCount , SampleRate , Sample } ;
7+ use crate :: common:: { ChannelCount , Sample , SampleRate } ;
88use lewton:: inside_ogg:: OggStreamReader ;
99use lewton:: samples:: InterleavedSamples ;
1010
11-
12-
1311/// Decoder for an OGG file that contains Vorbis sound format.
1412pub struct VorbisDecoder < R >
1513where
@@ -34,11 +32,10 @@ where
3432 Ok ( Self :: from_stream_reader ( stream_reader) )
3533 }
3634 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+ } ;
4239
4340 // The first packet is always empty, therefore
4441 // 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 _;
1010use dasp_sample:: I24 ;
1111use hound:: { SampleFormat , WavReader } ;
1212
13-
14-
1513/// Decoder for the WAV format.
1614pub struct WavDecoder < R >
1715where
You can’t perform that action at this time.
0 commit comments