pub fn custom_wave_values(
p: &CustomWaveSampling,
data1: &[f32],
data2: &[f32],
) -> Vec<[f32; 2]>Expand description
Port of the sample-preparation block of DrawCustomWaves: resampling, forward + backward
smoothing and scaling. Returns (value1, value2) per point for the engine’s per-point code.
data1/data2 are m_sound.fWaveform[0/1] (480 valid samples) or fSpectrum[0/1] (512).