Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 3
0
        public void ApplyToTrack(IAdjustableAudioComponent track)
        {
            this.track = track;

            InitialRate.TriggerChange();
            AdjustPitch.TriggerChange();
            recentRates.Clear();
            recentRates.AddRange(Enumerable.Repeat(InitialRate.Value, recent_rate_count));
        }
Ejemplo n.º 4
0
 public void ApplyToSample(IAdjustableAudioComponent sample)
 {
     sample.AddAdjustment(AdjustableProperty.Frequency, SpeedChange);
 }
Ejemplo n.º 5
0
 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);
 }
Ejemplo n.º 6
0
 public PreviewTrackManager(IAdjustableAudioComponent mainTrackAdjustments)
 {
     this.mainTrackAdjustments = mainTrackAdjustments;
 }
Ejemplo n.º 7
0
 public virtual void ApplyToTrack(IAdjustableAudioComponent track)
 {
     track.AddAdjustment(AdjustableProperty.Tempo, SpeedChange);
 }
Ejemplo n.º 8
0
 public TestPreviewTrackManager(IAdjustableAudioComponent mainTrackAdjustments)
     : base(mainTrackAdjustments)
 {
 }