I'm using SigmaStudio and an ADAU1442 development board to process an audio input stream with 6 different channels, which I've been able to separate. One of these channels contains volume and mute information, instead of regular audio data. I need to decode this data and use it to control the output stream. This data is sent in the form of packets, which consist of two header bytes, a length byte, some data, and finishing with a checksum.
I'm thinking of storing the last N data samples in some kind of array or buffer, looking for the header bytes, and then accessing the data bytes directly after the header bytes.
Is there a way of implementing a data buffer or queue in SigmaStudio? Is there a better way of decoding these command packets?