Function spectrusty::audio::render_audio_frame_ts
source · pub fn render_audio_frame_ts<VL, L, A, T>(
prev_state: u8,
end_ts: Option<i32>,
changes: &[T],
blep: &mut A,
channel: usize
)where
VL: AmpLevels<L>,
L: SampleDelta,
A: Blep<SampleDelta = L>,
T: Copy,
(i32, u8): From<T>,
Expand description
A helper method for rendering square-wave audio from slices containing updates of audio digital levels, sorted by T-state counter value.