Esempio n. 1
0
        private void ZoomToCurrentTrackStart()
        {
            long             selectionLength = CurrentTrack.FadeInEndMarker.Start - CurrentTrack.TrackRegion.Start;
            SfAudioSelection selection       = new SfAudioSelection(CurrentTrack.TrackRegion.Start, selectionLength);

            _fileTasks.SetSelection(selection);
            _fileTasks.ZoomToShow(_fileTasks.ExpandSelectionAround(selection, ZoomPadding));
            _fileTasks.RedrawWindow();
        }
Esempio n. 2
0
 public void PreviewStop()
 {
     _app.DoMenuAndWait("Transport.Stop", false);
     _fileTasks.SetSelection(_vm.CurrentTrack.GetSelectionWithFades());
 }