Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public RESULT unloadPlugin(PLUGINTYPE plugintype, int index)
 {
     return FMOD_System_UnloadPlugin(systemraw, plugintype, index);
 }
Ejemplo n.º 4
0
 private static extern RESULT FMOD_System_GetPluginHandle(IntPtr system, PLUGINTYPE plugintype, int index, ref uint handle);
Ejemplo n.º 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);
 }
Ejemplo n.º 6
0
 public RESULT getNumPlugins(PLUGINTYPE plugintype, ref int numplugins)
 {
     return FMOD_System_GetNumPlugins(systemraw, plugintype, ref numplugins);
 }
Ejemplo n.º 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;
        }
Ejemplo n.º 8
0
 public RESULT getNumPlugins          (PLUGINTYPE plugintype, out int numplugins)
 {
     return FMOD_System_GetNumPlugins(rawPtr, plugintype, out numplugins);
 }
Ejemplo n.º 9
0
 public RESULT getPluginHandle(PLUGINTYPE plugintype, int index, out uint handle)
 {
     return(System.FMOD5_System_GetPluginHandle(this.rawPtr, plugintype, index, out handle));
 }
Ejemplo n.º 10
0
 public RESULT getNumPlugins(PLUGINTYPE plugintype, out int numplugins)
 {
     return(System.FMOD5_System_GetNumPlugins(this.rawPtr, plugintype, out numplugins));
 }
Ejemplo n.º 11
0
 public RESULT getNumPlugins(PLUGINTYPE plugintype, out int numplugins)
 {
     return System.FMOD5_System_GetNumPlugins(this.rawPtr, plugintype, out numplugins);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 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));
 }
Ejemplo n.º 15
0
 private static extern RESULT FMOD_System_LoadPlugin(IntPtr system, string filename, ref PLUGINTYPE plugintype, ref int index);
Ejemplo n.º 16
0
 private static extern RESULT FMOD_System_UnloadPlugin(IntPtr system, PLUGINTYPE plugintype, int index);
Ejemplo n.º 17
0
 private static extern RESULT FMOD5_System_GetNumPlugins(IntPtr system, PLUGINTYPE plugintype, out int numplugins);
Ejemplo n.º 18
0
 public RESULT getPluginHandle        (PLUGINTYPE plugintype, int index, out uint handle)
 {
     return FMOD_System_GetPluginHandle(rawPtr, plugintype, index, out handle);
 }
Ejemplo n.º 19
0
 private static extern RESULT FMOD5_System_GetPluginHandle(IntPtr system, PLUGINTYPE plugintype, int index, out uint handle);
Ejemplo n.º 20
0
 private static extern RESULT FMOD_System_GetPluginInfo          (IntPtr system, uint handle, out PLUGINTYPE plugintype, IntPtr name, int namelen, out uint version);
Ejemplo n.º 21
0
 private static extern RESULT FMOD5_System_GetPluginInfo(IntPtr system, uint handle, out PLUGINTYPE plugintype, IntPtr name, int namelen, out uint version);
Ejemplo n.º 22
0
 public RESULT getPluginHandle(PLUGINTYPE plugintype, int index, ref uint handle)
 {
     return FMOD_System_GetPluginHandle(systemraw, plugintype, index, ref handle);
 }
Ejemplo n.º 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);
 }
Ejemplo n.º 24
0
 private static extern RESULT FMOD_System_GetNumPlugins(IntPtr system, PLUGINTYPE plugintype, ref int numplugins);
Ejemplo n.º 25
0
 public RESULT loadPlugin(string filename, ref PLUGINTYPE plugintype, ref int index)
 {
     return FMOD_System_LoadPlugin(systemraw, filename, ref plugintype, ref index);
 }
Ejemplo n.º 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));
 }