Skip to content

Commit

Permalink
Move back to using paComplete
Browse files Browse the repository at this point in the history
Made a misunderstanding. Pa_StopStream requires that we return paComplete when we are done to tell it that no more new buffers are being rendered for now and it can play any pending audio buffers.
  • Loading branch information
sakertooth committed Aug 12, 2024
1 parent 849667d commit a762042
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/audio/AudioPortAudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ int AudioPortAudio::processCallback(const float* inputBuffer, float* outputBuffe
if( !frames )
{
memset(outputBuffer, 0, framesPerBuffer * channels() * sizeof(float));
return paContinue;
return paComplete;
}
m_outBufSize = frames;
}
Expand Down

0 comments on commit a762042

Please sign in to comment.