Skip to main content

SoundLevels

Trait SoundLevels 

Source
pub trait SoundLevels {
    // Required methods
    fn level(&self, id: &Uuid) -> f32;
    fn spectrum_bytes(&self) -> [u8; 1024];
}
Expand description

The current output of the running sound triggers, as curves read it. On the machine with the audio input this is SoundData; a remote client gets the levels from the server.

Required Methods§

Source

fn level(&self, id: &Uuid) -> f32

Output level of a trigger in 0..=1, 0 while it is not running.

Source

fn spectrum_bytes(&self) -> [u8; 1024]

The current spectrum, as the little-endian f32 bytes effects read.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§