INNER CODE UNIT · Rust
clip_state
shawnscode/crayon · modules/audio/src/lib.rs:61
pub fn clip_state(handle: AudioClipHandle) -> ResourceState {
ctx().clip_state(handle)
}
/// Deletes a `AudioClip` resource from `AudioSystem`.
#[inline]
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)
}