pub enum RatePolicy {
Exact,
NearestSupported,
}Expand description
What to do when the DAC cannot run the requested rate.
Variants§
Exact
Fail with Error::Unsupported. Nothing is
ever resampled by the library, so a host that cannot resample itself
wants this.
NearestSupported
Use the closest rate the DAC runs. StreamFormat::sample_rate then
differs from the request; the host must resample, and the stream is not
reported bit-perfect.
Trait Implementations§
Source§impl Clone for RatePolicy
impl Clone for RatePolicy
impl Copy for RatePolicy
Source§impl Debug for RatePolicy
impl Debug for RatePolicy
Source§impl Default for RatePolicy
impl Default for RatePolicy
impl Eq for RatePolicy
Source§impl PartialEq for RatePolicy
impl PartialEq for RatePolicy
impl StructuralPartialEq for RatePolicy
Auto Trait Implementations§
impl Forget for RatePolicy
impl Freeze for RatePolicy
impl Move for RatePolicy
impl RefUnwindSafe for RatePolicy
impl Send for RatePolicy
impl Sync for RatePolicy
impl Unpin for RatePolicy
impl UnsafeUnpin for RatePolicy
impl UnwindSafe for RatePolicy
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
Mutably borrows from an owned value. Read more