audio calculate timestamps based on buffer sizes and samplerate