trying ping pong buffers. code here ;
TXlooks more promising than RX
maybe I need to have multiple pingpong buffers on the RX ?
if packet ready get packet
ping pong buffer
demodulate from ADPCM
16bit array to 32bit array 240 samples for I2S
( load 2nd ping pong buffer ? here )
I2S inturrupt outputs 2nd pingpong buffer 1 sample at a time until empty ?
how should the timing work?
should i timestamp / number the packets , packet order ?