AudioSession functions are deprecated from iOS 7.0, so prefer using AVAudioSession.
Suppress "deprecated" compile warning.