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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ReadStatus
impl Debug for ReadStatus
Source§impl PartialEq for ReadStatus
impl PartialEq for ReadStatus
impl Copy for ReadStatus
impl Eq for ReadStatus
impl StructuralPartialEq for ReadStatus
Auto Trait Implementations§
impl Freeze for ReadStatus
impl RefUnwindSafe for ReadStatus
impl Send for ReadStatus
impl Sync for ReadStatus
impl Unpin for ReadStatus
impl UnwindSafe for ReadStatus
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>, which can then be
downcast into Box<dyn ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>, which can then be further
downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSend for T
impl<T> DowncastSend for T
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.