Example #1
0
        public static TEffectState Instantiate <TEffectState>(PlaybackContext playbackContext, EffectSettings settings) where TEffectState : EffectState, new()
        {
            var state = new TEffectState();

            state.Init(playbackContext, settings);
            return(state);
        }
Example #2
0
 public override void Init(PlaybackContext playbackContext, EffectSettings settings)
 {
     Context  = playbackContext;
     Settings = settings;
     Dsp      = CreateDsp();
     Context.Track.AddDsp(Dsp);
     ApplyInitialSettings();
 }
Example #3
0
 public override EffectState CreateEffectState(PlaybackContext playbackContext)
 => EffectState.Instantiate <EchoEffectState>(playbackContext, this);
Example #4
0
 public override EffectState CreateEffectState(PlaybackContext playbackContext)
 => EffectState.Instantiate <BiQuadFilterEffectState>(playbackContext, this);
Example #5
0
 /// <summary>
 /// Creates a new effect state on a given audio track
 /// </summary>
 public abstract EffectState CreateEffectState(PlaybackContext playbackContext);
Example #6
0
 /// <summary>
 /// Initialize the effect for given audio track
 /// </summary>
 public abstract void Init(PlaybackContext playbackContext, EffectSettings settings);