pub unsafe fn shine_encode_buffer_interleaved(
config: &mut ShineGlobalConfig,
data: *const i16,
) -> EncodingResult<(&[u8], usize)>Expand description
Encode buffer with interleaved channels (matches shine_encode_buffer_interleaved) (ref/shine/src/lib/layer3.c:169-176)
ยงSafety
This function is unsafe because it accepts a raw pointer to PCM data. The caller must ensure that:
datapoints to valid PCM samples- The data contains at least
GRANULE_SIZE * channelssamples - The data remains valid for the duration of the function call
- The pointer is properly aligned for i16 access