Fixed errors in AudioManager code.