[−][src]Struct riddle_audio::AudioSystemHandle
Implementations
impl AudioSystemHandle
[src]
pub fn downgrade(this: &AudioSystemHandle) -> AudioSystemWeak
[src]
Downgrade this handle to a weak handle
pub fn eq(a: &AudioSystemHandle, b: &AudioSystemHandle) -> bool
[src]
Test whether two handles point to the same location in memory
Methods from Deref<Target = AudioSystem>
pub fn process_frame(&self)
[src]
Update the system's state.
Updates all ClipPlayer
fades. This must be called periodically for the AudioSystem
to function. Do not call this if the riddle
crate is being used.
Example
let audio_system = AudioSystem::new()?; // Tick the audio system every 100ms let start_time = std::time::Instant::now(); while std::time::Instant::now() - start_time < std::time::Duration::from_secs(2) { audio_system.process_frame(); std::thread::sleep(std::time::Duration::from_millis(100)); }
Trait Implementations
impl Clone for AudioSystemHandle
[src]
fn clone(&self) -> AudioSystemHandle
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Deref for AudioSystemHandle
[src]
type Target = AudioSystem
The resulting type after dereferencing.
fn deref(&self) -> &AudioSystem
[src]
Auto Trait Implementations
impl RefUnwindSafe for AudioSystemHandle
impl Send for AudioSystemHandle
impl Sync for AudioSystemHandle
impl Unpin for AudioSystemHandle
impl UnwindSafe for AudioSystemHandle
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,