babycat_waveform_get_unchecked_sample()¶
-
float babycat_waveform_get_unchecked_sample(babycat_Waveform *waveform, uintptr_t frame_idx, uint16_t channel_idx)¶
Return a given audio sample belonging to a specific frame and channel.
This method does not perform any bounds-checking. It is memory-unsafe if
frame_idx
is above the number of frames andchannel_idx
is above the number of channels.- Parameters
waveform – A pointer to the
babycat_Waveform
to query.frame_idx – The given frame.
channel_idx – The given channel.