pub enum PushStatus {
Ok,
OutputNotReady,
OverflowOccurred {
num_frames_pushed: usize,
},
UnderflowCorrected {
num_zero_frames_pushed: usize,
},
}
Expand description
The status of pushing samples to ResamplingProd::push
and
ResamplingProd::push_interleaved
.
Variants§
Ok
All samples were successfully pushed to the channel.
OutputNotReady
The output stream is not yet ready to read samples from the channel.
Note, this can also happen when the channel is reset.
No samples were pushed to the channel.
OverflowOccurred
An overflow occured due to the input stream running faster than the output stream. Some or all of the samples were not pushed to the channel.
If this occurs, then it may mean that ResamplingChannelConfig::capacity_seconds
is too low and should be increased.
Fields
UnderflowCorrected
An underflow occured due to the output stream running faster than the input stream.
All of the samples were successfully pushed to the channel, however extra zero samples were also pushed to the channel to correct for the jitter.
If this occurs, then it may mean that ResamplingChannelConfig::latency_seconds
is too low and should be increased.
Trait Implementations§
Source§impl Clone for PushStatus
impl Clone for PushStatus
Source§fn clone(&self) -> PushStatus
fn clone(&self) -> PushStatus
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
source
. Read more