예제 #1
0
        public RESULT getSystemObject(ref _System system)
        {
            RESULT rESULT = RESULT.OK;
            IntPtr raw    = IntPtr.Zero;

            try
            {
                rESULT = SoundGroup.FMOD_SoundGroup_GetSystemObject(soundgroupraw, ref raw);
            }
            catch
            {
                rESULT = RESULT.ERR_INVALID_PARAM;
            }
            RESULT result;

            if (rESULT != RESULT.OK)
            {
                result = rESULT;
            }
            else
            {
                if (system == null)
                {
                    _System system2 = new _System();
                    system2.setRaw(raw);
                    system = system2;
                }
                else
                {
                    system.setRaw(raw);
                }
                result = rESULT;
            }
            return(result);
        }
예제 #2
0
        public static RESULT System_Create(ref _System system)
        {
            IntPtr raw = IntPtr.Zero;
            RESULT rESULT;

            if (VERSION.platform == Platform.X64)
            {
                rESULT = Factory.FMOD_System_Create_64(ref raw);
            }
            else
            {
                rESULT = Factory.FMOD_System_Create_32(ref raw);
            }
            RESULT result;

            if (rESULT != RESULT.OK)
            {
                result = rESULT;
            }
            else
            {
                _System system2 = new _System();
                system2.setRaw(raw);
                system = system2;
                result = rESULT;
            }
            return(result);
        }