diff --git a/src/hostapi/wasapi/pa_win_wasapi.c b/src/hostapi/wasapi/pa_win_wasapi.c index 25bd67f..ff4a3d3 100644 --- a/src/hostapi/wasapi/pa_win_wasapi.c +++ b/src/hostapi/wasapi/pa_win_wasapi.c @@ -3888,6 +3888,12 @@ PA_THREAD_FUNC ProcThreadPoll(void *param) UINT32 frames = 0; if ((hr = PollGetOutputFramesAvailable(stream, &frames)) == S_OK) { + if (stream->bufferMode == paUtilFixedHostBufferSize) + { + if (frames >= stream->out.framesPerBuffer) + frames = stream->out.framesPerBuffer; + } + if (frames != 0) { if ((hr = ProcessOutputBuffer(stream, processor, frames)) != S_OK)