Commit ceee81a9 authored by Maurice Tayeb Andreas's avatar Maurice Tayeb Andreas

Erstes assert in VACS

parent ee8b7dcf
......@@ -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();
}
......
......@@ -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 = "$(DefaultHRIR)";
private static string DefaultHRIRPath = "$(DefaultHRI)";
private static string DefaultDirectivityPath = "$(Trumpet)";
private static int defaulthrir;
private static int defaultdirectivity;
......
......@@ -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())
......
......@@ -60,7 +60,7 @@ public class VAUSoundSource : MonoBehaviour {
_VA.SetAudiofileSignalSourceIsLooping(SignalSource, islooping);
}
else
Debug.Log("No Clip on AudioSource of GameObject: " + gameObject.name);
Debug.Log("No clip on AudioSource of GameObject: " + gameObject.name);
}
else
Debug.Log("No AudioSource on GameObject: " + gameObject.name);
......
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