Utility code for audio playback.