Ejemplo n.º 1
0
        public RESULT getNetworkProxy(StringBuilder proxy, int proxylen)
        {
            IntPtr intPtr = Marshal.AllocHGlobal(proxy.Capacity);
            RESULT result = System.FMOD5_System_GetNetworkProxy(this.rawPtr, intPtr, proxylen);

            StringMarshalHelper.NativeToBuilder(proxy, intPtr);
            Marshal.FreeHGlobal(intPtr);
            return(result);
        }
Ejemplo n.º 2
0
        public RESULT getName(StringBuilder name, int namelen)
        {
            IntPtr intPtr = Marshal.AllocHGlobal(name.Capacity);
            RESULT result = SoundGroup.FMOD5_SoundGroup_GetName(this.rawPtr, intPtr, namelen);

            StringMarshalHelper.NativeToBuilder(name, intPtr);
            Marshal.FreeHGlobal(intPtr);
            return(result);
        }
Ejemplo n.º 3
0
        public RESULT getRecordDriverInfo(int id, StringBuilder name, int namelen, out Guid guid, out int systemrate, out SPEAKERMODE speakermode, out int speakermodechannels, out DRIVER_STATE state)
        {
            IntPtr intPtr = Marshal.AllocHGlobal(name.Capacity);
            RESULT result = System.FMOD5_System_GetRecordDriverInfo(this.rawPtr, id, intPtr, namelen, out guid, out systemrate, out speakermode, out speakermodechannels, out state);

            StringMarshalHelper.NativeToBuilder(name, intPtr);
            Marshal.FreeHGlobal(intPtr);
            return(result);
        }
Ejemplo n.º 4
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);
        }
Ejemplo n.º 5
0
        public RESULT getInfo(StringBuilder name, out uint version, out int channels, out int configwidth, out int configheight)
        {
            IntPtr intPtr = Marshal.AllocHGlobal(32);
            RESULT result = DSP.FMOD5_DSP_GetInfo(this.rawPtr, intPtr, out version, out channels, out configwidth, out configheight);

            StringMarshalHelper.NativeToBuilder(name, intPtr);
            Marshal.FreeHGlobal(intPtr);
            return(result);
        }
Ejemplo n.º 6
0
        public RESULT getSyncPointInfo(IntPtr point, StringBuilder name, int namelen, out uint offset, TIMEUNIT offsettype)
        {
            IntPtr intPtr = Marshal.AllocHGlobal(name.Capacity);
            RESULT result = Sound.FMOD5_Sound_GetSyncPointInfo(this.rawPtr, point, intPtr, namelen, out offset, offsettype);

            StringMarshalHelper.NativeToBuilder(name, intPtr);
            Marshal.FreeHGlobal(intPtr);
            return(result);
        }
Ejemplo n.º 7
0
        public RESULT getName(StringBuilder name, int namelen)
        {
            IntPtr intPtr = Marshal.AllocHGlobal(name.Capacity);
            RESULT result = ChannelGroup.FMOD5_ChannelGroup_GetName(base.getRaw(), intPtr, namelen);

            StringMarshalHelper.NativeToBuilder(name, intPtr);
            Marshal.FreeHGlobal(intPtr);
            return(result);
        }