Is there an Audio Buffer in Mozzi?
jtragtenberg opened this issue · comments
Hello I looked through the Mozzi library code and I couldn’t find where I could define the Buffer size.
Does it work with a buffer with a predefined number of audio samples? Or is processing just done in the time between one sample and another?
So the buffer has the size of one sample. Was there a reason for that choice? If there was a buffer with 16 audio samples, instead of having 61 microseconds to process each sample, we could have 976us or even 1,9ms using a buffer with 32 audio samples. It would take longer to fill and read the buffer, the amount of time to process the signal would increase dramatically, wouldn't it? It would even be possible to make more elaborate processing with a 32768 Hz sample rate.
To implement it I believe it would be better to have another circular buffer holding the last N item[] arrays from the current circularBuffer, but I don't understand much about optimising C code. What do you think about it?
Oh, that is good to hear, thank you.