Suggest low latency to PortAudio.

pull/840/head
Mooneer Salem 2025-03-03 01:18:58 -08:00
parent bf745c2887
commit 02ee6e149c
1 changed files with 2 additions and 1 deletions

View File

@ -85,7 +85,8 @@ void PortAudioDevice::start()
streamParameters.device = deviceId_;
streamParameters.channelCount = numChannels_;
streamParameters.sampleFormat = paInt16;
streamParameters.suggestedLatency = deviceInfo->defaultHighInputLatency;
streamParameters.suggestedLatency =
IAudioEngine::AUDIO_ENGINE_IN ? deviceInfo->defaultLowInputLatency : deviceInfo->defaultLowOutputLatency;
#if defined(WIN32)
PaWasapiStreamInfo wasapiInfo;