本文整理汇总了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;
}
示例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;
}
示例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;
}
示例4:
private static extern RESULT FMOD_Studio_System_LoadBankCustom (IntPtr studiosystem, ref BANK_INFO info, LOAD_BANK_FLAGS flags, out IntPtr bank);
示例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);
示例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;
}