Skip to content
GitLab
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
ceee81a9
Commit
ceee81a9
authored
Dec 05, 2016
by
Maurice Tayeb Andreas
Browse files
Erstes assert in VACS
parent
ee8b7dcf
Changes
4
Hide whitespace changes
Inline
Side-by-side
VACS.cs
View file @
ceee81a9
...
...
@@ -158,7 +158,9 @@ namespace VA
public
string
CreateAudiofileSignalSource
(
string
FilePath
,
string
Name
)
{
StringBuilder
sIdentifier
=
new
StringBuilder
(
256
);
int
b
=
NativeCreateAudiofileSignalSource
(
_NetClient
,
FilePath
,
Name
,
sIdentifier
);
int
b
=
NativeCreateAudiofileSignalSource
(
_NetClient
,
FilePath
,
Name
,
sIdentifier
);
Debug
.
Assert
(
b
>
0
);
Debug
.
Assert
(
sIdentifier
.
Length
>
0
);
return
sIdentifier
.
ToString
();
}
...
...
VAUAdapter.cs
View file @
ceee81a9
...
...
@@ -13,7 +13,7 @@ public class VAUAdapter : MonoBehaviour {
private
static
string
HostIP
=
"localhost"
;
public
static
string
GlobalAuralizationMode
=
"all"
;
private
static
int
Port
=
12340
;
private
static
string
DefaultHRIRPath
=
"$(DefaultHRI
R
)"
;
private
static
string
DefaultHRIRPath
=
"$(DefaultHRI)"
;
private
static
string
DefaultDirectivityPath
=
"$(Trumpet)"
;
private
static
int
defaulthrir
;
private
static
int
defaultdirectivity
;
...
...
VAUListener.cs
View file @
ceee81a9
...
...
@@ -40,7 +40,7 @@ public class VAUListener : MonoBehaviour {
{
SetListenerPositionOrientation
();
}
//uses the View- and Up-Vector to transmit the position of the listener to VA
void
SetListenerPositionOrientation
()
{
t
=
GetComponent
<
Transform
>();
...
...
@@ -57,11 +57,13 @@ public class VAUListener : MonoBehaviour {
{
_VA
.
SetListenerAuralizationMode
(
Listener
,
AuraMode
);
}
void
OnDisable
()
{
if
(
GetComponent
<
VAUAuralizationMode
>()
!=
null
)
GetComponent
<
VAUAuralizationMode
>().
AuraStringChanged
-=
OnListenerAuralizationModeChanged
;
}
void
OnDestroy
()
{
if
(
_VA
.
IsConnected
())
...
...
VAUSoundSource.cs
View file @
ceee81a9
...
...
@@ -60,7 +60,7 @@ public class VAUSoundSource : MonoBehaviour {
_VA
.
SetAudiofileSignalSourceIsLooping
(
SignalSource
,
islooping
);
}
else
Debug
.
Log
(
"No
C
lip on AudioSource of GameObject: "
+
gameObject
.
name
);
Debug
.
Log
(
"No
c
lip on AudioSource of GameObject: "
+
gameObject
.
name
);
}
else
Debug
.
Log
(
"No AudioSource on GameObject: "
+
gameObject
.
name
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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