mirror of
https://github.com/cookiengineer/audacity
synced 2026-01-12 23:55:50 +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:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user