Updated AudioManager

Fixed some functions regarding the playing of sounds