Esempio 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);
        }
Esempio 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));
        }
Esempio n. 4
0
 public void ApplyToSample(IAdjustableAudioComponent sample)
 {
     sample.AddAdjustment(AdjustableProperty.Frequency, SpeedChange);
 }
Esempio 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);
 }
Esempio n. 6
0
 public PreviewTrackManager(IAdjustableAudioComponent mainTrackAdjustments)
 {
     this.mainTrackAdjustments = mainTrackAdjustments;
 }
Esempio n. 7
0
 public virtual void ApplyToTrack(IAdjustableAudioComponent track)
 {
     track.AddAdjustment(AdjustableProperty.Tempo, SpeedChange);
 }
Esempio n. 8
0
 public TestPreviewTrackManager(IAdjustableAudioComponent mainTrackAdjustments)
     : base(mainTrackAdjustments)
 {
 }