From 3a8e6a3480a251c1bf2e7eb5ffbbfa834db33eb8 Mon Sep 17 00:00:00 2001 From: aliakseis Date: Wed, 1 Feb 2023 15:25:07 +0300 Subject: [PATCH] weird hangup issue fixed --- QtPlayer/portaudioplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/QtPlayer/portaudioplayer.cpp b/QtPlayer/portaudioplayer.cpp index 9403737..9f16465 100644 --- a/QtPlayer/portaudioplayer.cpp +++ b/QtPlayer/portaudioplayer.cpp @@ -22,7 +22,7 @@ bool PortAudioPlayer::Open(int bytesPerSample, int channels, int* samplesPerSec) { PaStreamParameters params{}; params.device = Pa_GetDefaultOutputDevice(); - params.suggestedLatency = Pa_GetDeviceInfo(params.device)->defaultHighOutputLatency; + params.suggestedLatency = Pa_GetDeviceInfo(params.device)->defaultLowOutputLatency; params.channelCount = channels; switch (bytesPerSample)