diff --git a/VAUAdapter.cs b/VAUAdapter.cs index c30168f5e4de1ceae6b7dac5ff4c50dea5008bd8..4fc79467e445996809c284b861cec26592f11376 100644 --- a/VAUAdapter.cs +++ b/VAUAdapter.cs @@ -1,5 +1,4 @@ using UnityEngine; -using UnityEditor; using System; using System.Collections; using System.Collections.Generic; @@ -10,7 +9,7 @@ using VA; public class VAUAdapter : MonoBehaviour { - private static string HostIP = "VRBOX5"; + private static string HostIP = "localhost"; public static string GlobalAuralizationMode = "all"; private static int Port = 12340; private static string DefaultHRIRPath = "$(DefaultHRIR)"; @@ -75,8 +74,8 @@ public class VAUAdapter : MonoBehaviour { _VA = new VANet(); Init(); DeactivateUnitySound(); - if (! (_VA.AddSearchPath(Application.dataPath + "/.."))) - Debug.Log("[VA] Could not add SearchPath:" + Application.dataPath + "/.."); + // if (! (_VA.AddSearchPath(Application.dataPath + "/.."))) + // Debug.Log("[VA] Could not add SearchPath:" + Application.dataPath + "/.."); } void OnEnable() diff --git a/VAUSoundSource.cs b/VAUSoundSource.cs index a18a9ba6d74ce3fc3e79bc406d1579e2cd6fffed..2a244f7cd8d3b2bbcd1c8f5a1baad1ec91a49ea9 100644 --- a/VAUSoundSource.cs +++ b/VAUSoundSource.cs @@ -1,6 +1,5 @@ using UnityEngine; -using UnityEditor; -using System.Collections; +using System.IO; using System.Collections.Generic; using VA; @@ -54,7 +53,7 @@ public class VAUSoundSource : MonoBehaviour { { if (GetComponent<AudioSource>().clip != null) { - SignalSource = _VA.CreateAudiofileSignalSource(AssetDatabase.GetAssetPath(GetComponent<AudioSource>().clip), this.name + "_signal"); + SignalSource = _VA.CreateAudiofileSignalSource( "Audiofiles/" + GetComponent<AudioSource>().clip.name + ".wav", this.name + "_signal"); _VA.SetSoundSourceSignalSource(SoundSource, SignalSource); Debug.Log("[VAU]" + SignalSource + " connected to SoundSource " + SoundSource); _VA.SetAudiofileSignalSourcePlaybackAction(SignalSource, "PLAYING");