当前位置: 首页>>代码示例>>C#>>正文


C# LOAD_BANK_FLAGS类代码示例

本文整理汇总了C#中LOAD_BANK_FLAGS的典型用法代码示例。如果您正苦于以下问题:C# LOAD_BANK_FLAGS类的具体用法?C# LOAD_BANK_FLAGS怎么用?C# LOAD_BANK_FLAGS使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


LOAD_BANK_FLAGS类属于命名空间,在下文中一共展示了LOAD_BANK_FLAGS类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: loadBankMemory

        public RESULT loadBankMemory(byte[] buffer, LOAD_BANK_FLAGS flags, out Bank bank)
        {
            bank = null;

            IntPtr newPtr = new IntPtr();

            // Manually pin the byte array. It's what the marshaller should do anyway but don't leave it to chance.
            GCHandle pinnedArray = GCHandle.Alloc(buffer, GCHandleType.Pinned);
            IntPtr pointer = pinnedArray.AddrOfPinnedObject();
            RESULT result = FMOD_Studio_System_LoadBankMemory(rawPtr, pointer, buffer.Length, LOAD_MEMORY_MODE.LOAD_MEMORY, flags, out newPtr);
            pinnedArray.Free();
            if (result != RESULT.OK)
            {
                return result;
            }

            bank = new Bank(newPtr);
            return result;
        }
开发者ID:SamDavies,项目名称:GameDesignStudio,代码行数:19,代码来源:fmod_studio.cs

示例2: loadBankCustom

        public RESULT loadBankCustom(BANK_INFO info, LOAD_BANK_FLAGS flags, out Bank bank)
        {
            bank = null;

            info.size = Marshal.SizeOf(info);

            IntPtr newPtr = new IntPtr();
            RESULT result = FMOD_Studio_System_LoadBankCustom(rawPtr, ref info, flags, out newPtr);
            if (result != RESULT.OK)
            {
                return result;
            }

            bank = new Bank(newPtr);
            return result;
        }
开发者ID:SamDavies,项目名称:GameDesignStudio,代码行数:16,代码来源:fmod_studio.cs

示例3: loadBankFile

        public RESULT loadBankFile(string name, LOAD_BANK_FLAGS flags, out Bank bank)
        {
            bank = null;

            IntPtr newPtr = new IntPtr();
            RESULT result = FMOD_Studio_System_LoadBankFile(rawPtr, Encoding.UTF8.GetBytes(name + Char.MinValue), flags, out newPtr);
            if (result != RESULT.OK)
            {
                return result;
            }

            bank = new Bank(newPtr);
            return result;
        }
开发者ID:SamDavies,项目名称:GameDesignStudio,代码行数:14,代码来源:fmod_studio.cs

示例4:

 private static extern RESULT FMOD_Studio_System_LoadBankCustom          (IntPtr studiosystem, ref BANK_INFO info, LOAD_BANK_FLAGS flags, out IntPtr bank);
开发者ID:SamDavies,项目名称:GameDesignStudio,代码行数:1,代码来源:fmod_studio.cs

示例5: FMOD_Studio_System_LoadBankMemory

 private static extern RESULT FMOD_Studio_System_LoadBankMemory(IntPtr studiosystem, IntPtr buffer, int length, LOAD_MEMORY_MODE mode, LOAD_BANK_FLAGS flags, out IntPtr bank);
开发者ID:SamDavies,项目名称:GameDesignStudio,代码行数:1,代码来源:fmod_studio.cs

示例6: loadBankMemory

            public RESULT loadBankMemory(byte[] buffer, LOAD_BANK_FLAGS flags, out Bank bank)
            {
                bank = null;

                IntPtr newPtr = new IntPtr();
                RESULT result = FMOD_Studio_System_LoadBankMemory(rawPtr, buffer, buffer.Length, LOAD_MEMORY_MODE.LOAD_MEMORY, flags, out newPtr);
                if (result != RESULT.OK)
                {
                return result;
                }

                bank = new Bank(newPtr);
                return result;
            }
开发者ID:supersjo,项目名称:spacecowboy,代码行数:14,代码来源:fmod_studio.cs


注:本文中的LOAD_BANK_FLAGS类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。