Test: match Linux and macOS requested latency to Windows.
parent
4c32a5bdfa
commit
6b9ef2e865
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue