mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-05 23:19:06 +02:00
Merge: Bug969: Just disable pause during scrub. It does not make sense.
This commit is contained in:
commit
82c99a109e
@ -168,6 +168,8 @@ class AUDACITY_DLL_API AudioIO {
|
|||||||
void SeekStream(double seconds) { mSeek = seconds; }
|
void SeekStream(double seconds) { mSeek = seconds; }
|
||||||
|
|
||||||
#ifdef EXPERIMENTAL_SCRUBBING_SUPPORT
|
#ifdef EXPERIMENTAL_SCRUBBING_SUPPORT
|
||||||
|
bool IsScrubbing() { return IsBusy() && mScrubQueue != 0; }
|
||||||
|
|
||||||
static double GetMaxScrubSpeed() { return 32.0; } // Is five octaves enough for your amusement?
|
static double GetMaxScrubSpeed() { return 32.0; } // Is five octaves enough for your amusement?
|
||||||
static double GetMinScrubSpeed() { return 0.01; }
|
static double GetMinScrubSpeed() { return 0.01; }
|
||||||
/** \brief enqueue a new end time, using the last end as the new start,
|
/** \brief enqueue a new end time, using the last end as the new start,
|
||||||
|
@ -977,6 +977,13 @@ void ControlToolBar::OnRecord(wxCommandEvent &evt)
|
|||||||
|
|
||||||
void ControlToolBar::OnPause(wxCommandEvent & WXUNUSED(evt))
|
void ControlToolBar::OnPause(wxCommandEvent & WXUNUSED(evt))
|
||||||
{
|
{
|
||||||
|
#ifdef EXPERIMENTAL_SCRUBBING_SUPPORT
|
||||||
|
if (gAudioIO->IsScrubbing())
|
||||||
|
// Pausing does not make sense. Force the button
|
||||||
|
// to pop up below.
|
||||||
|
mPaused = true;
|
||||||
|
#endif
|
||||||
|
|
||||||
if(mPaused)
|
if(mPaused)
|
||||||
{
|
{
|
||||||
mPause->PopUp();
|
mPause->PopUp();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user