예제 #1
0
 /// <summary>
 /// Remove the specified entry.
 /// </summary>
 /// <param name="entry">Entry to remove</param>
 public void Remove(RoutingEntry entry)
 {
     currentRouting.Remove (entry);
     entry.Clear ();
 }
예제 #2
0
 /// <summary>
 /// Adds an audio routing entry from the given source to the given target, where a filter can be applied optionally
 /// </summary>
 /// <returns>The audio routing entry</returns>
 /// <param name="source">Where does the signal come from?</param>
 /// <param name="target">Where should the signal go to?</param>
 /// <param name="gain">How loud should the final effect be?</param>
 /// <param name="filter">Should the signal be filtered?</param>
 public RoutingEntry AddAudioRouting(Source source, EffectSlot target, float gain, Filter filter = null)
 {
     var routing = new RoutingEntry (source, target, gain.Clamp (0f, 1f), filter);
     currentRouting.Add (routing);
     routing.Setup ();
     return routing;
 }
예제 #3
0
파일: Source.cs 프로젝트: AreonDev/NoWayOut
 //mark route as used or free route
 internal void setRoute(RoutingEntry re, int num)
 {
     this.auxSends[num] = re;
 }