public void ApplyToTrack(IAdjustableAudioComponent track) { this.track = track; FinalRate.TriggerChange(); AdjustPitch.TriggerChange(); }
/// <summary> /// Creates a <see cref="DrawableAudioWrapper"/> that will wrap an audio component (and contain no drawable content). /// </summary> /// <param name="component">The audio component to wrap.</param> /// <param name="disposeUnderlyingComponentOnDispose">Whether the component should be automatically disposed on drawable disposal/expiry.</param> protected DrawableAudioWrapper([NotNull] IAdjustableAudioComponent component, bool disposeUnderlyingComponentOnDispose = true) { this.component = component ?? throw new ArgumentNullException(nameof(component)); this.disposeUnderlyingComponentOnDispose = disposeUnderlyingComponentOnDispose; component.BindAdjustments(adjustments); }
public void ApplyToTrack(IAdjustableAudioComponent track) { this.track = track; InitialRate.TriggerChange(); AdjustPitch.TriggerChange(); recentRates.Clear(); recentRates.AddRange(Enumerable.Repeat(InitialRate.Value, recent_rate_count)); }
public void ApplyToSample(IAdjustableAudioComponent sample) { sample.AddAdjustment(AdjustableProperty.Frequency, SpeedChange); }
public override void ApplyToTrack(IAdjustableAudioComponent track) { // base.ApplyToTrack() intentionally not called (different tempo adjustment is applied) track.AddAdjustment(AdjustableProperty.Frequency, freqAdjust); track.AddAdjustment(AdjustableProperty.Tempo, tempoAdjust); }
public PreviewTrackManager(IAdjustableAudioComponent mainTrackAdjustments) { this.mainTrackAdjustments = mainTrackAdjustments; }
public virtual void ApplyToTrack(IAdjustableAudioComponent track) { track.AddAdjustment(AdjustableProperty.Tempo, SpeedChange); }
public TestPreviewTrackManager(IAdjustableAudioComponent mainTrackAdjustments) : base(mainTrackAdjustments) { }