public void PlayEffect(IPreparedEffect element) { if (this.output == null) { throw new InvalidOperationException(); } PreparedSource prepared = element as PreparedSource; if (prepared == null) { throw new ArgumentException(nameof(element)); } if (prepared.Node.OutgoingConnections.Count == 0) { prepared.Node.AddOutgoingConnection(this.output); } else { prepared.Node.Reset(); } prepared.Node.Start(); }
public Task AdjustPlaybackAsync(IPreparedEffect prepared, PlaybackOptions options) { PreparedSource preparedSource = (PreparedSource)prepared; AdjustEmitter(preparedSource.Emitter, options); return(Task.CompletedTask); }
public void SetIntensity(IPreparedEffect prepared, double intensity) { if (prepared == null) { throw new ArgumentNullException(nameof(prepared)); } PreparedSource source = (PreparedSource)prepared; source.SetIntensity(intensity); }
public PreparedEffectEventArgs(IPreparedEffect effect) { Effect = effect ?? throw new ArgumentNullException(nameof(effect)); }
public void SetIntensity(IPreparedEffect effect, double intensity) { }
public void PlayEffect(IPreparedEffect effect) { }