Skip to content

Commit

Permalink
MME: fix comparison of IO buffer sizes in CalculateBufferSettings() (P…
Browse files Browse the repository at this point in the history
…ortAudio#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.
  • Loading branch information
Be-ing authored and illuusio committed Oct 21, 2021
1 parent 4afc59d commit b41b141
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hostapi/wmme/pa_win_wmme.c
Original file line number Diff line number Diff line change
Expand Up @@ -1729,7 +1729,7 @@ static PaError CalculateBufferSettings(

if( *hostFramesPerOutputBuffer != *hostFramesPerInputBuffer )
{
if( hostFramesPerInputBuffer < hostFramesPerOutputBuffer )
if( *hostFramesPerInputBuffer < *hostFramesPerOutputBuffer )
{
*hostFramesPerOutputBuffer = *hostFramesPerInputBuffer;

Expand Down

0 comments on commit b41b141

Please sign in to comment.