refactor audio output