]> Repos - portaudio/commitdiff
MME: fix comparison of IO buffer sizes in CalculateBufferSettings() (#571)
authorBe <be@mixxx.org>
Thu, 13 May 2021 00:17:10 +0000 (19:17 -0500)
committerGitHub <noreply@github.com>
Thu, 13 May 2021 00:17:10 +0000 (10:17 +1000)
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.

src/hostapi/wmme/pa_win_wmme.c

index f8b1d7e4ec958210551020bd09630521c7027259..1d928eb33910b4d8dc9d7ad9ae569d78dd4045b8 100644 (file)
@@ -1729,7 +1729,7 @@ static PaError CalculateBufferSettings(
 
                 if( *hostFramesPerOutputBuffer != *hostFramesPerInputBuffer )
                 {
-                    if( hostFramesPerInputBuffer < hostFramesPerOutputBuffer )
+                    if( *hostFramesPerInputBuffer < *hostFramesPerOutputBuffer )
                     {
                         *hostFramesPerOutputBuffer = *hostFramesPerInputBuffer;