INNER CODE UNIT · Rust
delete_clip
shawnscode/crayon · modules/audio/src/lib.rs:67
pub fn delete_clip(handle: AudioClipHandle) {
ctx().delete_clip(handle);
}
/// Plays a audio source, returning a `AudioSourceHandle` for it.
#[inline]
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)
}