// DSP attributes. public Result GetInfo(StringBuilder name, out uint version, out int channels, out int configwidth, out int configheight) { IntPtr nameMem = Marshal.AllocHGlobal(32); Result result = FMOD_DSP_GetInfo(RawPtr, nameMem, out version, out channels, out configwidth, out configheight); StringMarshalHelper.NativeToBuilder(name, nameMem); Marshal.FreeHGlobal(nameMem); return(result); }
public Result GetSyncPointInfo(IntPtr point, StringBuilder name, int namelen, out uint offset, TimeUnit offsettype) { IntPtr stringMem = Marshal.AllocHGlobal(name.Capacity); Result result = FMOD_Sound_GetSyncPointInfo(RawPtr, point, stringMem, namelen, out offset, offsettype); StringMarshalHelper.NativeToBuilder(name, stringMem); Marshal.FreeHGlobal(stringMem); return(result); }
public Result GetName(StringBuilder name, int namelen) { IntPtr stringMem = Marshal.AllocHGlobal(name.Capacity); Result result = FMOD_Sound_GetName(RawPtr, stringMem, namelen); StringMarshalHelper.NativeToBuilder(name, stringMem); Marshal.FreeHGlobal(stringMem); return(result); }