INNER CODE UNIT · Rust
create_clip_from_uuid
shawnscode/crayon · modules/audio/src/lib.rs:56
pub fn create_clip_from_uuid(uuid: Uuid) -> Result<AudioClipHandle> {
ctx().create_clip_from_uuid(uuid)
}
#[inline]
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>