pub struct MainWave {Show 16 fields
pub mode: i32,
pub rgba: [f32; 4],
pub x: f32,
pub y: f32,
pub mystery: f32,
pub usedots: bool,
pub thick: bool,
pub additive: bool,
pub brighten: bool,
pub scale: f32,
pub smoothing: f32,
pub mod_alpha_by_volume: bool,
pub mod_alpha_start: f32,
pub mod_alpha_end: f32,
pub wave: [[f32; 576]; 2],
pub spectrum: [[f32; 512]; 2],
}Expand description
Main waveform (DrawWave inputs).
Fields§
§mode: i32var_pf_wave_mode (% NUM_WAVES is applied by the engine; modes 0..=8 are drawn).
rgba: [f32; 4]var_pf_wave_r/g/b and var_pf_wave_a.
x: f32var_pf_wave_x (0..1).
y: f32var_pf_wave_y (0..1; y=1 is the top of the screen).
mystery: f32var_pf_wave_mystery.
usedots: boolvar_pf_wave_usedots.
thick: boolvar_pf_wave_thick.
additive: boolvar_pf_wave_additive.
brighten: boolvar_pf_wave_brighten (maximize colour).
scale: f32m_fWaveScale.eval() (applied to the waveform at the top of RenderFrame: scale = fWaveScale/128).
smoothing: f32m_fWaveSmoothing.eval() (IIR smoothing with mix2 = smoothing).
mod_alpha_by_volume: boolm_bModWaveAlphaByVolume.
mod_alpha_start: f32m_fModWaveAlphaStart.
mod_alpha_end: f32m_fModWaveAlphaEnd.
wave: [[f32; 576]; 2]Raw mysound.fWave[0] / [1] (left, right): 576 samples, MD2 units (signed, full scale
about ±128; the renderer multiplies by scale/128 and smooths exactly like RenderFrame).
Same layout as lactea_audio::AudioFrame::wave (only the first 480 are valid but the
main-wave modes peek at up to index 511 like MD2).
spectrum: [[f32; 512]; 2]mysound.fSpecLeft / fSpecRight (512 bins), only read by wave mode 8
(same layout as AudioFrame::spectrum).