RetroPlayerAudio: Refactor code and simplify logic