pub trait AudioInstance {
    // Required methods
    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§

source

fn new() -> Self

Creation of a new module

This is called once on startup of the module

source

fn update( &mut self, frame_info: &AudioRenderInfo, object_to_world: Mat4, static_data: &[u8], dynamic_data: &[u8], stereo_buffer: &mut [f32] )

Implement the update of the audio module here

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

Implementors§