#[repr(u32)]pub enum OpenState {
Ready = 0,
Loading = 1,
Error(Error),
Connecting = 3,
Buffering = 4,
Seeking = 5,
Playing = 6,
SetPosition = 7,
}
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(Error)
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.
Implementations§
Source§impl OpenState
impl OpenState
Sourcepub fn try_from_ffi(value: FMOD_OPENSTATE, error: Option<Error>) -> Result<Self>
pub fn try_from_ffi(value: FMOD_OPENSTATE, error: Option<Error>) -> Result<Self>
Try creating a OpenState
from its FFI equivalent.
Trait Implementations§
impl Copy for OpenState
impl Eq 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