#[repr(C)]pub enum OpenState {
Ready = 0,
Loading = 1,
Error = 2,
Connecting = 3,
Buffering = 4,
Seeking = 5,
Playing = 6,
SetPosition = 7,
Max = 8,
ForceInt = 65_536,
}
Expand description
These values describe what state a sound is in after FMOD_NONBLOCKING has been used to open it.
Variants§
Ready = 0
Opened and ready to play.
Loading = 1
Initial load in progress.
Error = 2
Failed to open - file not found, out of memory etc. See return value of
Sound::get_open_state
for what happened.
Connecting = 3
Connecting to remote host (internet sounds only).
Buffering = 4
Buffering data.
Seeking = 5
Seeking to subsound and re-flushing stream buffer.
Playing = 6
Ready and playing, but not possible to release at this time without stalling the main thread.
SetPosition = 7
Seeking within a stream to a different position.
Max = 8
Maximum number of open state types.
ForceInt = 65_536
Makes sure this enum is signed 32bit.
Trait Implementations§
Source§impl PartialOrd for OpenState
impl PartialOrd for OpenState
impl Copy for OpenState
impl StructuralPartialEq for OpenState
Auto Trait Implementations§
impl Freeze for OpenState
impl RefUnwindSafe for OpenState
impl Send for OpenState
impl Sync for OpenState
impl Unpin for OpenState
impl UnwindSafe for OpenState
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