Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Technical Acoustics (ITA)
VAUnity
Commits
e4aeaa11
Commit
e4aeaa11
authored
Apr 04, 2017
by
Maurice Tayeb Andreas
Browse files
part of adding AddSearchPath
parent
16695271
Changes
2
Hide whitespace changes
Inline
Side-by-side
VACS.cs
View file @
e4aeaa11
...
...
@@ -258,6 +258,11 @@ namespace VA
{
NativeSetOutputMuted
(
_NetClient
,
bMuted
);
}
public
bool
AddSearchPath
(
string
SearchPath
)
{
return
NativeAddSearchPath
(
_NetClient
,
SearchPath
);
}
/*
* Native imported functions from C++ unmanaged library declared private, so they can not be accessed
* directly through C# class method
...
...
@@ -274,9 +279,10 @@ namespace VA
[
DllImport
(
"VANetCSWrapper"
)
]
private
static
extern
void
NativeInitialize
(
IntPtr
pClient
);
[
DllImport
(
"VANetCSWrapper"
)
]
private
static
extern
void
NativeFinalize
(
IntPtr
pClient
);
[
DllImport
(
"VANetCSWrapper"
)
]
private
static
extern
void
NativeReset
(
IntPtr
pClient
);
//[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeEnumerateModules( IntPtr pClient, std::vector<CVAModuleInfo>& viModuleInfos );
//[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeCallModule( IntPtr pClient, char pcModuleID, const CVAStruct& oArgs, CVAStruct& oReturn );
[
DllImport
(
"VANetCSWrapper"
)
]
private
static
extern
int
NativeLoadDirectivity
(
IntPtr
pClient
,
string
sFileName
,
string
sName
);
[
DllImport
(
"VANetCSWrapper"
)
]
private
static
extern
bool
NativeAddSearchPath
(
IntPtr
pClient
,
string
sSearchPath
);
//[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeEnumerateModules( IntPtr pClient, std::vector<CVAModuleInfo>& viModuleInfos );
//[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeCallModule( IntPtr pClient, char pcModuleID, const CVAStruct& oArgs, CVAStruct& oReturn );
[
DllImport
(
"VANetCSWrapper"
)
]
private
static
extern
int
NativeLoadDirectivity
(
IntPtr
pClient
,
string
sFileName
,
string
sName
);
[
DllImport
(
"VANetCSWrapper"
)
]
private
static
extern
bool
NativeFreeDirectivity
(
IntPtr
pClient
,
int
iDirID
);
//[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeGetDirectivityInfo( IntPtr pClient, int iDirID, CVADirectivityInfo& );
//[ DllImport( "VANetCSWrapper" ) ] private static extern void NativeGetDirectivityInfos( IntPtr pClient, std::vector<CVADirectivityInfo>& vdiDest );
...
...
VAUAdapter.cs
View file @
e4aeaa11
...
...
@@ -75,7 +75,7 @@ public class VAUAdapter : MonoBehaviour {
_VA
=
new
VANet
();
Init
();
DeactivateUnitySound
();
_VA
.
AddSearchPath
;
_VA
.
AddSearchPath
(
Application
.
dataPath
+
"/.."
)
;
}
void
OnEnable
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment