コード例 #1
0
        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);
        }
コード例 #2
0
        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;
        }