Reading and writing audio data with repa