Beispiel #1
0
        public RESULT getPluginInfo(uint handle, out PLUGINTYPE plugintype, StringBuilder name, int namelen, out uint version)
        {
            IntPtr intPtr = Marshal.AllocHGlobal(name.Capacity);
            RESULT result = System.FMOD5_System_GetPluginInfo(this.rawPtr, handle, out plugintype, intPtr, namelen, out version);

            StringMarshalHelper.NativeToBuilder(name, intPtr);
            Marshal.FreeHGlobal(intPtr);
            return(result);
        }
        public RESULT getPluginInfo(uint handle, out PLUGINTYPE plugintype, out string name, int namelen, out uint version)
        {
            IntPtr intPtr = Marshal.AllocHGlobal(namelen);
            RESULT result = FMOD5_System_GetPluginInfo(this.handle, handle, out plugintype, intPtr, namelen, out version);

            using (StringHelper.ThreadSafeEncoding threadSafeEncoding = StringHelper.GetFreeHelper())
            {
                name = threadSafeEncoding.stringFromNative(intPtr);
            }
            Marshal.FreeHGlobal(intPtr);
            return(result);
        }
Beispiel #3
0
 public RESULT unloadPlugin(PLUGINTYPE plugintype, int index)
 {
     return FMOD_System_UnloadPlugin(systemraw, plugintype, index);
 }
Beispiel #4
0
 private static extern RESULT FMOD_System_GetPluginHandle(IntPtr system, PLUGINTYPE plugintype, int index, ref uint handle);
Beispiel #5
0
 public RESULT getPluginInfo(uint handle, ref PLUGINTYPE plugintype, StringBuilder name, int namelen, ref uint version)
 {
     return FMOD_System_GetPluginInfo(systemraw, handle, ref plugintype, name, namelen, ref version);
 }
Beispiel #6
0
 public RESULT getNumPlugins(PLUGINTYPE plugintype, ref int numplugins)
 {
     return FMOD_System_GetNumPlugins(systemraw, plugintype, ref numplugins);
 }
Beispiel #7
0
        public RESULT getPluginInfo          (uint handle, out PLUGINTYPE plugintype, StringBuilder name, int namelen, out uint version)
        {
            IntPtr stringMem = Marshal.AllocHGlobal(name.Capacity);

            RESULT result = FMOD_System_GetPluginInfo(rawPtr, handle, out plugintype, stringMem, namelen, out version);

            StringMarshalHelper.NativeToBuilder(name, stringMem);
            Marshal.FreeHGlobal(stringMem);

            return result;
        }
Beispiel #8
0
 public RESULT getNumPlugins          (PLUGINTYPE plugintype, out int numplugins)
 {
     return FMOD_System_GetNumPlugins(rawPtr, plugintype, out numplugins);
 }
Beispiel #9
0
 public RESULT getPluginHandle(PLUGINTYPE plugintype, int index, out uint handle)
 {
     return(System.FMOD5_System_GetPluginHandle(this.rawPtr, plugintype, index, out handle));
 }
Beispiel #10
0
 public RESULT getNumPlugins(PLUGINTYPE plugintype, out int numplugins)
 {
     return(System.FMOD5_System_GetNumPlugins(this.rawPtr, plugintype, out numplugins));
 }
Beispiel #11
0
 public RESULT getNumPlugins(PLUGINTYPE plugintype, out int numplugins)
 {
     return System.FMOD5_System_GetNumPlugins(this.rawPtr, plugintype, out numplugins);
 }
Beispiel #12
0
 public RESULT getPluginInfo          (uint handle, out PLUGINTYPE plugintype, StringBuilder name, int namelen, out uint version)
 {
     return FMOD_System_GetPluginInfo(rawPtr, handle, out plugintype, name, namelen, out version);
 }
Beispiel #13
0
 public static bool GeRegisterPlugin(PLUGINTYPE type, int id, string /* constString&_cstype */ str, SWIGTYPE_p_void data, int datasize) {
   bool ret = C4dApiPINVOKE.GeRegisterPlugin((int)type, id, str, SWIGTYPE_p_void.getCPtr(data), datasize);
   if (C4dApiPINVOKE.SWIGPendingException.Pending) throw C4dApiPINVOKE.SWIGPendingException.Retrieve();
   return ret;
 }
 public RESULT getPluginInfo(uint handle, out PLUGINTYPE plugintype, out uint version)
 {
     return(FMOD5_System_GetPluginInfo(this.handle, handle, out plugintype, IntPtr.Zero, 0, out version));
 }
Beispiel #15
0
 private static extern RESULT FMOD_System_LoadPlugin(IntPtr system, string filename, ref PLUGINTYPE plugintype, ref int index);
Beispiel #16
0
 private static extern RESULT FMOD_System_UnloadPlugin(IntPtr system, PLUGINTYPE plugintype, int index);
Beispiel #17
0
 private static extern RESULT FMOD5_System_GetNumPlugins(IntPtr system, PLUGINTYPE plugintype, out int numplugins);
Beispiel #18
0
 public RESULT getPluginHandle        (PLUGINTYPE plugintype, int index, out uint handle)
 {
     return FMOD_System_GetPluginHandle(rawPtr, plugintype, index, out handle);
 }
Beispiel #19
0
 private static extern RESULT FMOD5_System_GetPluginHandle(IntPtr system, PLUGINTYPE plugintype, int index, out uint handle);
Beispiel #20
0
 private static extern RESULT FMOD_System_GetPluginInfo          (IntPtr system, uint handle, out PLUGINTYPE plugintype, IntPtr name, int namelen, out uint version);
Beispiel #21
0
 private static extern RESULT FMOD5_System_GetPluginInfo(IntPtr system, uint handle, out PLUGINTYPE plugintype, IntPtr name, int namelen, out uint version);
Beispiel #22
0
 public RESULT getPluginHandle(PLUGINTYPE plugintype, int index, ref uint handle)
 {
     return FMOD_System_GetPluginHandle(systemraw, plugintype, index, ref handle);
 }
Beispiel #23
0
 public RESULT getPluginInfo(PLUGINTYPE plugintype, int index, StringBuilder name, int namelen, ref uint version)
 {
     return FMOD_System_GetPluginInfo(systemraw, plugintype, index, name, namelen, ref version);
 }
Beispiel #24
0
 private static extern RESULT FMOD_System_GetNumPlugins(IntPtr system, PLUGINTYPE plugintype, ref int numplugins);
Beispiel #25
0
 public RESULT loadPlugin(string filename, ref PLUGINTYPE plugintype, ref int index)
 {
     return FMOD_System_LoadPlugin(systemraw, filename, ref plugintype, ref index);
 }
Beispiel #26
0
 private static extern RESULT FMOD_System_GetPluginInfo(IntPtr system, uint handle, ref PLUGINTYPE plugintype, StringBuilder name, int namelen, ref uint version);
 public RESULT getNumPlugins(PLUGINTYPE plugintype, out int numplugins)
 {
     return(FMOD5_System_GetNumPlugins(handle, plugintype, out numplugins));
 }