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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user