1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-05-02 00:29:41 +02:00

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.
This commit is contained in:
James Crook 2018-09-08 16:55:34 +01:00
parent 0f5c8d4d84
commit 596feddfe7

View File

@ -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"