Example #1
0
            internal static _GetSoundPath GetSoundPath()
            {
                if (_GetSoundPathFunc == null)
                {
                    _GetSoundPathFunc =
                        (_GetSoundPath)Marshal.GetDelegateForFunctionPointer(
                            NativeLibrary.GetExport(
                                Torque3D.Torque3DLibHandle,
                                "fnSoundAsset_getSoundPath"), typeof(_GetSoundPath));
                }

                return(_GetSoundPathFunc);
            }
Example #2
0
            internal static _GetSoundPath GetSoundPath()
            {
                if (_GetSoundPathFunc == null)
                {
                    _GetSoundPathFunc =
                        (_GetSoundPath)Marshal.GetDelegateForFunctionPointer(
                            Torque3D.DllLoadUtils.GetProcAddress(
                                Torque3D.Torque3DLibHandle,
                                "fnSoundAsset_getSoundPath"), typeof(_GetSoundPath));
                }

                return(_GetSoundPathFunc);
            }