Refactoring

parent 675482c1
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class VAUHRIRDataset : MonoBehaviour {
protected int _ID = -1; // ID assigned by VA
[Tooltip("Absolute or relative file path (relative to Assets folder or any folder added to search path using AddSearchPath)")]
public string FilePath = "";
public string Name = ""; // Versatile name
public int ID
{
get
{
return _ID;
}
}
// Use this for initialization
void Start ()
{
if (FilePath.Length > 0)
_ID = VAUAdapter.VA.CreateDirectivityFromFile(FilePath);
}
private void OnDestroy()
{
if (_ID != -1)
VAUAdapter.VA.DeleteDirectivity(_ID);
_ID = -1;
}
}
......@@ -2,7 +2,7 @@
using System.Collections.Generic;
using UnityEngine;
public class VAUAudiofileSignalSource : VAUSignalSource
public class VAUSignalSourceAudioFile : VAUSignalSource
{
[Tooltip("Absolute or relative file path (relative to Assets folder or any folder added to search path using AddSearchPath)")]
public string FilePath;
......
......@@ -12,7 +12,7 @@ public class VAUSoundReceiver : MonoBehaviour {
public int NumMaxReverbZones = 2;
public string VAAudioRenderer = "MyBinauralArtificialReverb";
[Tooltip("Add custom VAUHRIR dataset.")]
public VAUHRIRDataset HRIR = null;
public VAUDirectivity HRIR = null;
[Tooltip("Anthropometric data, for HRIR individualization or generic binaural cues")]
public double HeadWidth = 0.12;
......
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