INNER CODE UNIT · Rust

set_listener

shawnscode/crayon · modules/audio/src/mixer/mod.rs:77

    pub fn set_listener(&self, position: Vector3<f32>) {
        let cmd = Command::SetListener(position);
        self.tx.write().unwrap().push(cmd);
    }

    #[inline]
    pub fn delete_source(&self, handle: AudioSourceHandle) {
        let cmd = Command::DeleteSource(handle);
        self.tx.write().unwrap().push(cmd);
    }

    #[inline]
    pub fn set_volume(&self, handle: AudioSourceHandle, volume: f32) {
        let cmd = Command::SetVolume(handle, volume);
        self.tx.write().unwrap().push(cmd);
    }

    #[inline]

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…