mirror of
https://github.com/cookiengineer/audacity
synced 2025-10-25 15:53:52 +02:00
When recording into region selection, stop it precisely
This commit is contained in:
@@ -814,6 +814,19 @@ public:
|
||||
// Whether to check the error code passed to audacityAudioCallback to
|
||||
// detect more dropouts
|
||||
bool mDetectUpstreamDropouts{ true };
|
||||
|
||||
private:
|
||||
struct RecordingSchedule {
|
||||
double mLatencyCorrection{};
|
||||
double mDuration{};
|
||||
|
||||
// This is initialized to 0 by the main thread, then updated
|
||||
// only by the thread calling FillBuffers:
|
||||
double mPosition{};
|
||||
|
||||
double Remaining() const
|
||||
{ return mDuration - mLatencyCorrection - mPosition; }
|
||||
} mRecordingSchedule{};
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user