1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-01-12 07:35:51 +01:00

Bug 1906 - Issues with dynamic Play-at-Speed (Shows as Scrubbing)

Fixed issue 2, i.e. the scrub indicator no longer appears during Play at Speed, and the status bar now says 'Playing at Speed' rather than 'Scrubbing'.
This commit is contained in:
James Crook
2018-07-21 19:11:08 +01:00
parent 2115e9b5ac
commit 5caa14e4f9
2 changed files with 9 additions and 1 deletions

View File

@@ -881,6 +881,9 @@ void ScrubbingOverlay::OnTimer(wxCommandEvent &event)
const auto ruler = mProject->GetRulerPanel();
auto position = ::wxGetMousePosition();
if (scrubber.IsSpeedPlaying())
return;
{
if(scrubber.HasStartedScrubbing()) {
auto xx = ruler->ScreenToClient(position).x;
@@ -1049,7 +1052,10 @@ const wxString &Scrubber::GetUntranslatedStateString() const
{
static wxString empty;
if (HasStartedScrubbing()) {
if (IsSpeedPlaying()) {
return(_("Playing at Speed"));
}
else if (HasStartedScrubbing()) {
auto &item = FindMenuItem(Seeks() || TemporarilySeeks());
return item.status;
}

View File

@@ -91,6 +91,8 @@ public:
wxCoord GetScrubStartPosition() const
{ return mScrubStartPosition; }
bool IsSpeedPlaying() const
{ return IsScrubbing() && mSpeedPlaying; }
// True iff the user has clicked to start scrub and not yet stopped,
// but IsScrubbing() may yet be false
bool HasStartedScrubbing() const