pub enum ReadStatus {
Ok,
InputNotReady,
UnderflowOccurred {
num_frames_read: usize,
},
OverflowCorrected {
num_frames_discarded: usize,
},
}
Expand description
The status of reading data from ResamplingCons::read
and
ResamplingCons::read_interleaved
.
Variants§
Ok
The output buffer was fully filled with samples from the channel.
InputNotReady
The input stream is not yet ready to push samples to the channel.
Note, this can also happen when the channel is reset.
The output buffer was filled with zeros.
UnderflowOccurred
An underflow occured due to the output stream running faster than the input stream. Some or all of the samples in the output buffer have been filled with zeros on the end. This may result in audible audio glitches.
If this occurs, then it may mean that ResamplingChannelConfig::latency_seconds
is too low and should be increased.
Fields
OverflowCorrected
An overflow occured due to the input stream running faster than the output stream
All of the samples in the output buffer were successfully filled with samples, however a number of frames have also been discarded to correct for the jitter.
If this occurs, then it may mean that ResamplingChannelConfig::capacity_seconds
is too low and should be increased.
Trait Implementations§
Source§impl Clone for ReadStatus
impl Clone for ReadStatus
Source§fn clone(&self) -> ReadStatus
fn clone(&self) -> ReadStatus
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more