mirror of
https://github.com/iluvcapra/bwavfile.git
synced 2026-11-16 00:34:13 +00:00
Changed audio_frame_reader interface
to hide RawChunkReader
This commit is contained in:
1 parent
016f5e3e3b
commit
09a9413ff2
3 files changed
+24
-5
No files matched your search
+2
-1
@@ -103,7 +103,7 @@ impl<R: Read + Seek> WaveReader<R> {
|
||||
/**
|
||||
* Create an `AudioFrameReader` for reading each audio frame.
|
||||
*/
|
||||
pub fn audio_frame_reader(&mut self) -> Result<AudioFrameReader<RawChunkReader<R>>, ParserError> {
|
||||
pub fn audio_frame_reader(&mut self) -> Result<AudioFrameReader<R>, ParserError> {
|
||||
let format = self.format()?;
|
||||
let audio_chunk_reader = self.chunk_reader(DATA_SIG, 0)?;
|
||||
Ok(AudioFrameReader::new(audio_chunk_reader, format))
|
||||
@@ -349,3 +349,4 @@ impl<R:Read+Seek> WaveReader<R> { /* Private Implementation */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user