Sebastian Gesemann:

@all: Thank you for your responses. I'm going to use my own ringbuffer
using C++11's std::atomics.


Here are a couple of alternatives:

http://portaudio.com/docs/v19-doxydocs-dev/pa__ringbuffer_8h.html
http://www.boost.org/doc/libs/1_60_0/doc/html/lockfree.html