INNER CODE UNIT · Rust
set_position
shawnscode/crayon · modules/audio/src/lib.rs:88
pub fn set_position<T>(handle: AudioSourceHandle, position: T)
where
T: Into<Vector3<f32>>,
{
ctx().set_position(handle, position)
}
/// Sets the volume of a playing sound.
#[inline]
pub fn set_volume(handle: AudioSourceHandle, volume: f32) {
ctx().set_volume(handle, volume);
}
/// Sets the frequency-shift of a playing sound.
#[inline]
pub fn set_pitch(handle: AudioSourceHandle, pitch: f32) {
ctx().set_pitch(handle, pitch);
}