Test: match Linux and macOS requested latency to Windows.

ms-rtsan-additional-updates
Mooneer Salem 2025-06-05 01:05:29 -07:00
parent 4c32a5bdfa
commit 6b9ef2e865
2 changed files with 2 additions and 2 deletions

View File

@ -46,7 +46,7 @@ thread_local int MacAudioDevice::CurrentCoreAudioId_ = 0;
constexpr static double kOneNanosecond = 1.0e9;
// The I/O interval time in seconds.
constexpr static double AUDIO_SAMPLE_BLOCK_SEC = 0.010;
constexpr static double AUDIO_SAMPLE_BLOCK_SEC = 0.020;
static OSStatus GetIOBufferFrameSizeRange(AudioObjectID inDeviceID,
UInt32* outMinimum,

View File

@ -39,7 +39,7 @@ using namespace std::chrono_literals;
// Target latency. This controls e.g. how long it takes for
// TX audio to reach the radio.
#define PULSE_TARGET_LATENCY_US 10000
#define PULSE_TARGET_LATENCY_US 20000
thread_local std::chrono::high_resolution_clock::time_point PulseAudioDevice::StartTime_;
thread_local bool PulseAudioDevice::MustStopWork_ = false;