Here's a few suggestions in addition to what Keith mentions. I would try to avoid the memory copy and move operations. You mention a circular buffer, which is one way of doing it, another would be to have the fifo hold discrete buffers and pop each buffer from the front in it's entirety. Avoiding the copy and move operations should speed up the code significantly, which I assume is of concern when processing audio data :) Also, I would drop the typedef, just use `struct fifo` instead. This makes it easier to convert this into a full ADT (Abstract Data Type) later, and just forward declare the struct to users while keeping the actual struct private. As a final note, are you absolutely sure that the `restrict` keyword is the proper thing to use here?