Commit ae608fdb authored by Maurice Tayeb Andreas's avatar Maurice Tayeb Andreas
Browse files

little bugfix

parent b401b247
...@@ -38,7 +38,7 @@ public class VAUListener : MonoBehaviour { ...@@ -38,7 +38,7 @@ public class VAUListener : MonoBehaviour {
Debug.Log("[VAU]" + listenername + " created"); Debug.Log("[VAU]" + listenername + " created");
_VA.SetListenerHRIRDataset(Listener, VAUAdapter.DefaultHRIR); _VA.SetListenerHRIRDataset(Listener, VAUAdapter.DefaultHRIR);
SetListenerPositionOrientation(); SetListenerPositionOrientation();
_VA.SetArtificalReverbarationTime(VAAudioRenderer, 2.0f); _VA.SetArtificalReverbarationTime(VAAudioRenderer, 0.3f);
reverbZones = FindObjectsOfType(typeof(AudioReverbZone)) as AudioReverbZone[]; reverbZones = FindObjectsOfType(typeof(AudioReverbZone)) as AudioReverbZone[];
} }
......
...@@ -133,6 +133,7 @@ public class VAUSoundSource : MonoBehaviour { ...@@ -133,6 +133,7 @@ public class VAUSoundSource : MonoBehaviour {
void OnDestroy() void OnDestroy()
{ {
_VA = VAUAdapter.VA;
if (_VA.IsConnected()) if (_VA.IsConnected())
{ {
_VA.DeleteSoundSource(SoundSource); _VA.DeleteSoundSource(SoundSource);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment