PaulStoffregen / Audio

Teensy Audio Library
http://www.pjrc.com/teensy/td_libs_Audio.html
1.08k stars 401 forks source link

memcpy_tointerleave allow AUDIO_BLOCK_SAMPLES == 4 #423

Open ericfont opened 2 years ago

ericfont commented 2 years ago

Previous code won't work for AUDIO_BLOCK_SAMPLES < 8. So I would like to add a case for AUDIO_BLOCK_SAMPLES == 4, using the same pattern of interleaving code as for AUDIO_BLOCK_SAMPLES == 8, but just half as much.

I've tested on my Teensy 4.1 with Audio Board Rev D with L/R audio for memcpy_tointerleaveLR, as well as with L-only and R-only for memcpy_tointerleaveL and memcpy_tointerleaveR.

PaulStoffregen commented 2 years ago

looks fine, but now conflicting due to #424

ericfont commented 2 years ago

ok, I fixed that conflict and repushed.