void ControlToolBar::OnPlay(wxCommandEvent & WXUNUSED(evt)) { StopPlaying(); AudacityProject *p = GetActiveProject(); if (p) p->TP_DisplaySelection(); PlayDefault(); }
void ControlToolBar::OnPlay(wxCommandEvent & WXUNUSED(evt)) { auto p = GetActiveProject(); if (!CanStopAudioStream()) return; StopPlaying(); if (p) p->TP_DisplaySelection(); PlayDefault(); UpdateStatusBar(p); }
void ControlToolBar::OnPlay(wxCommandEvent & WXUNUSED(evt)) { auto doubleClicked = mPlay->IsDoubleClicked(); mPlay->ClearDoubleClicked(); auto p = GetActiveProject(); if (doubleClicked) p->GetPlaybackScroller().Activate(true); else { if (!CanStopAudioStream()) return; StopPlaying(); if (p) p->TP_DisplaySelection(); PlayDefault(); UpdateStatusBar(p); } }
void ControlToolBar::OnPlay(wxCommandEvent &evt) { PlayDefault(); }