Bug 1969 - Windows: no monitored sound for 15 secs with software playthrough with default MME host

This was a bug in portaudio MME implementation.
With all the buffers bigger than they were meant to be, we got a longer input and longer output delay.
This commit is contained in:
James Crook 2018-09-08 23:22:56 +01:00
parent ff01d39601
commit 47926c04fa
1 changed files with 5 additions and 1 deletions

View File

@ -1751,7 +1751,11 @@ static PaError CalculateBufferSettings(
if( *hostFramesPerOutputBuffer != *hostFramesPerInputBuffer )
{
if( hostFramesPerInputBuffer < hostFramesPerOutputBuffer )
// JKC: Patched By Audacity. Our Bug 1969
// Previously this line incorrectly read:
// if( hostFramesPerInputBuffer < hostFramesPerOutputBuffer )
// So it was comparing pointers, rather than the values pointed to.
if( *hostFramesPerInputBuffer < *hostFramesPerOutputBuffer )
{
*hostFramesPerOutputBuffer = *hostFramesPerInputBuffer;