pub trait DecodePcmStream: EncodePcmStream {
// Required methods
fn total_input_frames(&self) -> usize;
fn completed_input_frames(&self) -> usize;
fn stream_info(&self) -> StreamInfo;
// Provided methods
fn set_threads(&mut self, _threads: usize) { ... }
fn take_decoded_samples(&mut self) -> Result<Option<(Vec<i32>, usize)>> { ... }
}Expand description
Single-pass FLAC decode stream consumed by crate::Decoder and recompress flows.
Required Methods§
Sourcefn total_input_frames(&self) -> usize
fn total_input_frames(&self) -> usize
Return the total number of FLAC frames expected from the input.
Sourcefn completed_input_frames(&self) -> usize
fn completed_input_frames(&self) -> usize
Return the number of FLAC frames decoded so far.
Sourcefn stream_info(&self) -> StreamInfo
fn stream_info(&self) -> StreamInfo
Return the parsed STREAMINFO block for the input stream.
Provided Methods§
Sourcefn set_threads(&mut self, _threads: usize)
fn set_threads(&mut self, _threads: usize)
Update the worker-thread count when the implementation supports it.