Enum rfmod::OpenState
[−]
[src]
#[repr(C)]pub enum OpenState { Ready, Loading, Error, Connecting, Buffering, Seeking, Playing, SetPosition, Max, ForceInt, }
These values describe what state a sound is in after FMOD_NONBLOCKING has been used to open it.
Variants
ReadyOpened and ready to play.
LoadingInitial load in progress.
ErrorFailed to open - file not found, out of memory etc. See return value of
Sound::get_open_state for what happened.
ConnectingConnecting to remote host (internet sounds only).
BufferingBuffering data.
SeekingSeeking to subsound and re-flushing stream buffer.
PlayingReady and playing, but not possible to release at this time without stalling the main thread.
SetPositionSeeking within a stream to a different position.
MaxMaximum number of open state types.
ForceIntMakes sure this enum is signed 32bit.
Trait Implementations
impl Clone for OpenState[src]
fn clone(&self) -> OpenState[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl PartialEq for OpenState[src]
fn eq(&self, __arg_0: &OpenState) -> bool[src]
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
This method tests for !=.
impl PartialOrd for OpenState[src]
fn partial_cmp(&self, __arg_0: &OpenState) -> Option<Ordering>[src]
This method returns an ordering between self and other values if one exists. Read more
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than (for self and other) and is used by the < operator. Read more
fn le(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl Debug for OpenState[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result[src]
Formats the value using the given formatter. Read more