From 596feddfe7db8750b8502e142b4508d1b4c9067c Mon Sep 17 00:00:00 2001 From: James Crook Date: Sat, 8 Sep 2018 16:55:34 +0100 Subject: [PATCH] Workaround for Bug 1969 - Windows: no monitored sound for 15 secs with software playthrough with default MME host This is not a proper fix, as we do not fully understand the problem - which is in release builds only. It may be enough though to get us through to release. --- src/AudioIO.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/AudioIO.cpp b/src/AudioIO.cpp index c59b13c20..5eeedbd03 100644 --- a/src/AudioIO.cpp +++ b/src/AudioIO.cpp @@ -1567,10 +1567,16 @@ bool AudioIO::StartPortAudioStream(double sampleRate, playbackParameters.hostApiSpecificStreamInfo = NULL; playbackParameters.channelCount = mNumPlaybackChannels; +// Workaround for bug 1969. +// PortAudio appears to be reporting too high a value for LowOuputLatency +// in release builds. The Workaround is don't use it. +#if 0 if (mSoftwarePlaythrough) playbackParameters.suggestedLatency = playbackDeviceInfo->defaultLowOutputLatency; - else { + else +#endif + { // When using WASAPI, the suggested latency does not affect // the latency of the playback, but the position of playback is given as if // there was the suggested latency. This results in the last "suggested latency"