Esempio n. 1
0
            internal static _GetSoundDuration GetSoundDuration()
            {
                if (_GetSoundDurationFunc == null)
                {
                    _GetSoundDurationFunc =
                        (_GetSoundDuration)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnSFXProfile_getSoundDuration"), typeof(_GetSoundDuration));
                }

                return(_GetSoundDurationFunc);
            }
Esempio n. 2
0
            internal static _GetSoundDuration GetSoundDuration()
            {
                if (_GetSoundDurationFunc == null)
                {
                    _GetSoundDurationFunc =
                        (_GetSoundDuration)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnSFXProfile_getSoundDuration"), typeof(_GetSoundDuration));
                }

                return(_GetSoundDurationFunc);
            }