Refactored audioPlayer