void SetPlayerFile (NSUrl fileUrl) { NSError error; file = new AVAudioFile (fileUrl, out error); if (error != null) throw new NSErrorException (error); engine.Connect (player, engine.MainMixerNode, file.ProcessingFormat); }