pub enum AcousticTransitionError {
InvalidProfile,
InvalidDuration,
InvalidDelta,
}Expand description
Invalid input to an AcousticTransition. Errors leave its state unchanged.
use ferravex_play::audio::{AcousticTransition, AcousticTransitionError};
let mut transition = AcousticTransition::default();
assert_eq!(transition.advance(f64::NAN), Err(AcousticTransitionError::InvalidDelta));Variants§
InvalidProfile
Gain must be finite in 0..=1 and cutoff finite in 80..=24000 Hz.
InvalidDuration
Transition duration must be finite and nonnegative, in seconds.
InvalidDelta
Elapsed time must be finite and nonnegative, in seconds.
Trait Implementations§
Source§impl Clone for AcousticTransitionError
impl Clone for AcousticTransitionError
Source§fn clone(&self) -> AcousticTransitionError
fn clone(&self) -> AcousticTransitionError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AcousticTransitionError
impl Debug for AcousticTransitionError
Source§impl Display for AcousticTransitionError
impl Display for AcousticTransitionError
Source§impl Error for AcousticTransitionError
impl Error for AcousticTransitionError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Source§impl PartialEq for AcousticTransitionError
impl PartialEq for AcousticTransitionError
impl Copy for AcousticTransitionError
impl Eq for AcousticTransitionError
impl StructuralPartialEq for AcousticTransitionError
Auto Trait Implementations§
impl Freeze for AcousticTransitionError
impl RefUnwindSafe for AcousticTransitionError
impl Send for AcousticTransitionError
impl Sync for AcousticTransitionError
impl Unpin for AcousticTransitionError
impl UnwindSafe for AcousticTransitionError
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