Commit 174112b7 authored by Maurice Tayeb Andreas's avatar Maurice Tayeb Andreas

Listener Creation auf standart auramode geändert

parent c23890cd
......@@ -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
......
......@@ -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);
//}
}
......@@ -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.NativeSetSoundSourceVolume(SoundSource, Volume);
//_VA.SetSoundSourceVolume(SoundSource, Volume); <- flaot ändern
}
void OnDestroy()
{
//_VA.DeleteSoundSource(SoundSource);
//_VA.DeleteSignalSource(SignalSource);
}
//void OnDestroy()
//{
// //_VA.DeleteSoundSource(SoundSource);
// //_VA.DeleteSignalSource(SignalSource);
//}
}
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