Fixes

parent 20022808
......@@ -61,7 +61,7 @@ public class VAUListener : MonoBehaviour {
SetListenerPositionOrientation();
_VA.SetArtificalReverbarationTime(VAAudioRenderer, 0.3f);
_VA.SetArtificialReverberationTime(VAAudioRenderer, 0.3f);
reverbZones = FindObjectsOfType(typeof(AudioReverbZone)) as AudioReverbZone[];
}
......@@ -141,7 +141,7 @@ public class VAUListener : MonoBehaviour {
if (ReverbTimeChanged != null)
ReverbTimeChanged(actReverbTime);
_VA.SetArtificalReverbarationTime(VAAudioRenderer, actReverbTime);
_VA.SetArtificialReverberationTime(VAAudioRenderer, actReverbTime);
}
......
......@@ -2,10 +2,8 @@
using System.Collections.Generic;
using UnityEngine;
public class VAURendererArtificialReverb : MonoBehaviour : VAURendererController
public class VAURendererArtificialReverb : VAURendererController
{
public string RendererID = "";
public double RoomReverberationTime = 1.2; // s
public double RoomSurfaceArea = 220.0; // m^2
public double RoomVolume = 600.0; // m^3
......@@ -16,11 +14,11 @@ public class VAURendererArtificialReverb : MonoBehaviour : VAURendererController
void Start ()
{
VAUAdapter.VA.SetArtificialRevberationTime( RendererID, RoomReverberationTime );
VAUAdapter.VA.SetArtificialReverberationTime( RendererID, RoomReverberationTime );
VAUAdapter.VA.SetArtificialSurfaceArea( RendererID, RoomSurfaceArea );
VAUAdapter.VA.SetArtificialRoomVolume( RendererID, RoomVolume );
RoomReverberationTimeShadow = OutputMuted;
RoomReverberationTimeShadow = RoomReverberationTime;
RoomSurfaceAreaShadow = RoomSurfaceArea;
RoomVolumeShadow = RoomVolume;
}
......@@ -29,7 +27,7 @@ public class VAURendererArtificialReverb : MonoBehaviour : VAURendererController
{
if( RoomReverberationTime != RoomReverberationTimeShadow )
{
VAUAdapter.VA.SetArtificialRevberationTime( RendererID, RoomReverberationTime );
VAUAdapter.VA.SetArtificialReverberationTime( RendererID, RoomReverberationTime );
RoomReverberationTimeShadow = RoomReverberationTime;
}
if( RoomSurfaceArea != RoomSurfaceAreaShadow )
......
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