Made the AudioManager generate code and work