pub enum SceneError {
ZeroSampleRate,
ZeroChannels,
RateMismatch {
sound: u32,
},
ChannelMismatch {
sound: u32,
},
UnknownSound {
event: usize,
},
NotFinite {
event: usize,
},
ZeroLoop,
}Expand description
Why a scene could not be built.
Variants§
ZeroSampleRate
ZeroChannels
RateMismatch
A sound runs at another sample rate than the scene.
ChannelMismatch
A sound has a channel count other than the scene’s or one.
UnknownSound
An event names a sound that does not exist.
NotFinite
An event’s gain is not a finite number.
ZeroLoop
A loop of zero frames.
Trait Implementations§
Source§impl Clone for SceneError
impl Clone for SceneError
impl Copy for SceneError
Source§impl Debug for SceneError
impl Debug for SceneError
Source§impl Display for SceneError
impl Display for SceneError
impl Eq for SceneError
Source§impl Error for SceneError
impl Error for SceneError
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 SceneError
impl PartialEq for SceneError
impl StructuralPartialEq for SceneError
Auto Trait Implementations§
impl Forget for SceneError
impl Freeze for SceneError
impl Move for SceneError
impl RefUnwindSafe for SceneError
impl Send for SceneError
impl Sync for SceneError
impl Unpin for SceneError
impl UnsafeUnpin for SceneError
impl UnwindSafe for SceneError
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