pub struct AudioVisualization {
pub range: FrequencyRange,
pub mode: VisualizationMode,
pub sensitivity: f32,
pub bass_color_trigger: bool,
pub mid_brightness_trigger: bool,
pub high_effect_trigger: bool,
pub update_interval_ms: u32,
pub active: bool,
}Expand description
Audio visualization settings and state
Fields§
§range: FrequencyRangeWhich frequency range to monitor
mode: VisualizationModeHow to visualize audio
sensitivity: f32Audio volume sensitivity (0.0-1.0)
bass_color_trigger: boolWhether bass should trigger color changes
mid_brightness_trigger: boolWhether mids should trigger brightness changes
high_effect_trigger: boolWhether highs should trigger effect changes
update_interval_ms: u32Minimum time between visualization updates (ms)
active: boolWhether to sync state from audio directly to LED
Trait Implementations§
Source§impl Clone for AudioVisualization
impl Clone for AudioVisualization
Source§fn clone(&self) -> AudioVisualization
fn clone(&self) -> AudioVisualization
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AudioVisualization
impl Debug for AudioVisualization
Auto Trait Implementations§
impl Freeze for AudioVisualization
impl RefUnwindSafe for AudioVisualization
impl Send for AudioVisualization
impl Sync for AudioVisualization
impl Unpin for AudioVisualization
impl UnwindSafe for AudioVisualization
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more