test code to capture audio buffers