Function spectrusty::audio::render_audio_frame_vts
source · pub fn render_audio_frame_vts<VF, VL, L, A, T>(
prev_state: u8,
end_ts: Option<VFrameTs<VF>>,
changes: &[T],
blep: &mut A,
channel: usize
)where
VF: VideoFrame,
VL: AmpLevels<L>,
L: SampleDelta,
A: Blep<SampleDelta = L>,
T: Copy,
(VideoTs, u8): From<T>,
Expand description
A helper method for rendering square-wave audio from slices containing updates of audio digital levels, sorted by time encoded in VideoTs time stamps.