Slight refactorage of audio buffer