INNER CODE UNIT · Rust
stop
shawnscode/crayon · modules/audio/src/lib.rs:82
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>>,
{
ctx().set_position(handle, position)
}
/// Sets the volume of a playing sound.
#[inline]
pub fn set_volume(handle: AudioSourceHandle, volume: f32) {
ctx().set_volume(handle, volume);
}