Replace deprecated AudioSession function calls

AudioSession functions are deprecated from iOS 7.0, so prefer using AudioSession.