INNER CODE UNIT · Rust

create_clip_from

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

pub fn create_clip_from<T: AsRef<str>>(url: T) -> Result<AudioClipHandle> {
    ctx().create_clip_from(url)
}

/// Creates a clip object from file asynchronously.
#[inline]
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) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…