its looking like i need to try using a ping pong buffer in the code. This will allow me to read the samples continuously and dump blocks of samples into LibLTC as an array with the pointer.
I thought the circular buffer was the answer but you cannot really use a pointer to point to large block of samples this way. its hard to achieve any kind of timing with the circular buffer. Or at least I am not sure how to make the timing work !!
If I say load a ping pong buffer of say 1920 samples 1/25th of a second ( 1 video frame in time ) of audio at 48khz sample rate. then when its full send it to LibLTC for decoding. whilst its being copied next 1920 samples are coming into array B of the ping pong buffer..
Thats the idea but I'm new to the Ping Pong Buffer concept !!! does anyone here have any pingpong buffer example code that they think that would work on on arduino DUE??
Will post code if I get this working....