From: Be Date: Thu, 13 May 2021 00:17:10 +0000 (-0500) Subject: MME: fix comparison of IO buffer sizes in CalculateBufferSettings() (#571) X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=febd58ebba3200723fdc1ef6067dedcc01a90efb;p=portaudio MME: fix comparison of IO buffer sizes in CalculateBufferSettings() (#571) Pull in fix from Audacity: https://bugzilla.audacityteam.org/show_bug.cgi?id=1969 The problem was some kind of typo, comparing pointers instead of the values of pointers. --- diff --git a/src/hostapi/wmme/pa_win_wmme.c b/src/hostapi/wmme/pa_win_wmme.c index f8b1d7e..1d928eb 100644 --- a/src/hostapi/wmme/pa_win_wmme.c +++ b/src/hostapi/wmme/pa_win_wmme.c @@ -1729,7 +1729,7 @@ static PaError CalculateBufferSettings( if( *hostFramesPerOutputBuffer != *hostFramesPerInputBuffer ) { - if( hostFramesPerInputBuffer < hostFramesPerOutputBuffer ) + if( *hostFramesPerInputBuffer < *hostFramesPerOutputBuffer ) { *hostFramesPerOutputBuffer = *hostFramesPerInputBuffer;