static void SetSessionActive (bool active) { #if __IOS__ var error = AVAudioSession.SharedInstance ().SetActive (active); if (error != null) throw new NSErrorException (error); #endif }