INNER CODE UNIT · Rust

play

shawnscode/crayon · modules/audio/src/lib.rs:73

pub fn play<T>(params: T) -> Result<AudioSourceHandle>
where
    T: Into<AudioSource>,
{
    ctx().play(params)
}

/// Stops a played audio source.
#[inline]
pub fn stop(handle: AudioSourceHandle) {
    ctx().stop(handle)
}

/// Sets the emiiter position of playing sound.
#[inline]
pub fn set_position<T>(handle: AudioSourceHandle, position: T)
where
    T: Into<Vector3<f32>>,

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…