1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-10-25 15:53:52 +02:00

Revert "Play head is green during pre-roll, then turns red for real recording"

This reverts commit 8e51391b98.
This commit is contained in:
Paul Licameli
2018-06-11 18:23:56 -04:00
parent a72b8f98c0
commit 77779395c7
3 changed files with 17 additions and 46 deletions

View File

@@ -18,7 +18,6 @@
#include "Experimental.h"
#include "MemoryX.h"
#include <atomic>
#include <utility>
#include <vector>
#include <wx/atomic.h>
@@ -399,9 +398,6 @@ class AUDACITY_DLL_API AudioIO final {
unsigned GetNumPlaybackChannels() const { return mNumPlaybackChannels; }
unsigned GetNumCaptureChannels() const { return mNumCaptureChannels; }
// Meaning really capturing, not just pre-rolling
bool IsCapturing() const;
/** \brief Array of common audio sample rates
*
* These are the rates we will always support, regardless of hardware support
@@ -850,20 +846,16 @@ private:
double mDuration{};
PRCrossfadeData mCrossfadeData;
// This is initialized by the main thread, then updated
// These are initialized by the main thread, then updated
// only by the thread calling FillBuffers:
double mPosition{};
bool mLatencyCorrected{};
double TotalCorrection() const { return mLatencyCorrection - mPreRoll; }
double ToConsume(double position) const;
double Consumed(double position) const;
double ToDiscard(double position) const;
double ToConsume() const;
double Consumed() const;
double ToDiscard() const;
} mRecordingSchedule{};
// This is initialized by the main thread, then updated
// only by the thread calling FillBuffers, but may need to be read by the
// main thread to draw display correctly.
std::atomic<double> mRecordingPosition{};
};
#endif