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
174112b7
Commit
174112b7
authored
Nov 17, 2016
by
Maurice Tayeb Andreas
Browse files
Listener Creation auf standart auramode geändert
parent
c23890cd
Changes
3
Hide whitespace changes
Inline
Side-by-side
VACS.cs
View file @
174112b7
...
...
@@ -182,6 +182,10 @@ namespace VA
{
NativeSetListenerEnabled
(
_NetClient
,
iListenerID
,
bEnabled
);
}
public
void
SetListenerHRIRDataset
(
int
iListenerID
,
int
iHRIRDatasetID
)
{
NativeSetListenerHRIRDataset
(
_NetClient
,
iListenerID
,
iHRIRDatasetID
);
}
/*
* Native imported functions from C++ unmanaged library declared private, so they can not be accessed
* directly through C# class method
...
...
VAUListener.cs
View file @
174112b7
...
...
@@ -15,6 +15,7 @@ public class VAUListener : MonoBehaviour {
{
_VA
=
VAUAdapter
.
VA
;
Listener
=
_VA
.
CreateListener
(
listenername
,
auramode
,
VAUAdapter
.
DefaultHRIR
);
_VA
.
SetListenerHRIRDataset
(
Listener
,
VAUAdapter
.
DefaultHRIR
);
}
// Update is called once per frame
...
...
@@ -25,10 +26,10 @@ public class VAUListener : MonoBehaviour {
_VA
.
SetListenerOrientationYPR
(
Listener
,
-
t
.
transform
.
rotation
.
eulerAngles
.
x
,
-
t
.
transform
.
rotation
.
eulerAngles
.
y
,
t
.
transform
.
rotation
.
eulerAngles
.
z
);
}
void
OnDestroy
()
{
_VA
.
DeleteListener
(
Listener
);
}
//
void OnDestroy()
//
{
//
_VA.DeleteListener(Listener);
//
}
}
VAUSoundSource.cs
View file @
174112b7
...
...
@@ -8,7 +8,7 @@ public class VAUSoundSource : MonoBehaviour {
public
int
AuralizationMode
=
1
;
[
Range
(
0.0f
,
100.0f
)]
public
int
Volume
=
70
;
public
int
Volume
=
1
;
public
string
SignalSource
=
""
;
private
VANet
_VA
=
null
;
private
int
SoundSource
;
...
...
@@ -40,14 +40,14 @@ public class VAUSoundSource : MonoBehaviour {
_VA
.
SetSoundSourceOrientationYPR
(
SoundSource
,
-
t
.
transform
.
rotation
.
eulerAngles
.
x
,
-
t
.
transform
.
rotation
.
y
,
t
.
transform
.
rotation
.
eulerAngles
.
z
);
ismuted
=
GetComponent
<
AudioSource
>().
mute
;
_VA
.
SetSoundSourceMuted
(
SoundSource
,
ismuted
);
//_VA.
Native
SetSoundSourceVolume(SoundSource, Volume);
//_VA.SetSoundSourceVolume(SoundSource, Volume);
<- flaot ändern
}
void
OnDestroy
()
{
//_VA.DeleteSoundSource(SoundSource);
//_VA.DeleteSignalSource(SignalSource);
}
//
void OnDestroy()
//
{
//
//_VA.DeleteSoundSource(SoundSource);
//
//_VA.DeleteSignalSource(SignalSource);
//
}
}
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