INNER CODE UNIT · Rust
set_listener
shawnscode/crayon · modules/audio/src/lib.rs:41
pub fn set_listener<T>(position: T)
where
T: Into<Vector3<f32>>,
{
ctx().set_listener(position);
}
/// Creates a clip object from file asynchronously.
#[inline]
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)
}