Minor changes to the AudioPlayer class. Remove unused method