C++ library for synchronous sampling of audio data