You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some dialogue on the Teensy forum raised the issue of
support for 24- or 32-bit output; for example see
https://forum.pjrc.com/index.php?threads/updated-8x8-and-16x16-audio.75569/post-357275
Obviously not supported by the 16-bit Audio library,
but partially supported in this library for I²S and S/PDIF.
Since the TDM support usually emits 32-bit samples, forcing use
of even-numbered ports only, there is an opportunity
to adopt the I/O objects directly by converting two
16-bit TDM port values (containing high and low words) to
and from a single F32 stream, giving 24-bit I/O.
This commit implements the required objects, plus a
minor change to AudioStream_F32 needed for the
AudioConvert_I16x2toF32 class.
staticvoidconvertAudio_F32toI16x2(audio_block_f32_t *in, audio_block_t *outH, audio_block_t *outL, int len) {
198
+
//WEA Method. Should look at CMSIS arm_float_to_q15 instead: https://www.keil.com/pack/doc/CMSIS/DSP/html/group__float__to__x.html#ga215456e35a18db86882e1d3f0d24e1f2
0 commit comments