コード例 #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);
        }
コード例 #2
0
 public override void Init(PlaybackContext playbackContext, EffectSettings settings)
 {
     Context  = playbackContext;
     Settings = settings;
     Dsp      = CreateDsp();
     Context.Track.AddDsp(Dsp);
     ApplyInitialSettings();
 }
コード例 #3
0
ファイル: EchoSettings.cs プロジェクト: guusw/fx2
 public override EffectState CreateEffectState(PlaybackContext playbackContext)
 => EffectState.Instantiate <EchoEffectState>(playbackContext, this);
コード例 #4
0
 public override EffectState CreateEffectState(PlaybackContext playbackContext)
 => EffectState.Instantiate <BiQuadFilterEffectState>(playbackContext, this);
コード例 #5
0
ファイル: EffectSettings.cs プロジェクト: guusw/fx2
 /// <summary>
 /// Creates a new effect state on a given audio track
 /// </summary>
 public abstract EffectState CreateEffectState(PlaybackContext playbackContext);
コード例 #6
0
 /// <summary>
 /// Initialize the effect for given audio track
 /// </summary>
 public abstract void Init(PlaybackContext playbackContext, EffectSettings settings);