pub trait AudioInstance {
    fn new() -> Self;
    fn update(
        &mut self,
        frame_info: &AudioRenderInfo,
        object_to_world: Mat4,
        static_data: &[u8],
        dynamic_data: &[u8],
        stereo_buffer: &mut [f32]
    ); }
Expand description

Audio module creation & update trait

Required Methods§

Creation of a new module

This is called once on startup of the module

Implement the update of the audio module here

TODO: Describe more in detail how it works and what the parameters are

Implementors§