Copied basics of MusicPlayer code for audio manager