Hi guys,, I want to implement a feature. The software i am working on maintains a continuous buffer of samples. This buffer is an AudioSampleBuffer.
somewhat like AudioSampleBuffer *dataBuffer;
where dataBuffer is a pointer to an incoming continuous buffer.
This buffer contains data from different electrodes, and each electrode has 2 channels. Actually the buffer is a group of many channel buffers, one for each channel.
I want to maintain a Continuous Circular Buffer which stores samples for different channels for different electrodes. I want to calculate running median on this data, i have the sampling rate for the samples.
I heed help in implementing this buffer, how can i maintain this circular buffer, ( real problem is adding data into buffer).
i can share the file containing code if needed.