public static ExtAudioFileError WrapAudioFileID(IntPtr audioFileID, bool forWriting, out ExtAudioFile outAudioFile) { IntPtr ptr; ExtAudioFileError res; unsafe { res = ExtAudioFileWrapAudioFileID(audioFileID, forWriting, (IntPtr)(&ptr)); } if (res != ExtAudioFileError.OK) { outAudioFile = null; return(res); } outAudioFile = new ExtAudioFile(ptr); return(res); }
public static ExtAudioFileError WrapAudioFileID(IntPtr audioFileID, bool forWriting, out ExtAudioFile outAudioFile) { IntPtr ptr; ExtAudioFileError res; unsafe { res = ExtAudioFileWrapAudioFileID (audioFileID, forWriting, (IntPtr)(&ptr)); } if (res != ExtAudioFileError.OK) { outAudioFile = null; return res; } outAudioFile = new ExtAudioFile (ptr); return res; }