- fixed possible buffer overrun inside WASAPI for Output poll-driven mode according ticket #196 (thanks to Ross Bencina for spotting this and proposing the solution)
// output\r
if (stream->bufferMode == paUtilFixedHostBufferSize)\r
{\r
- if (frames >= stream->out.framesPerBuffer)\r
+ while (frames >= stream->out.framesPerBuffer)\r
{\r
if ((hr = ProcessOutputBuffer(stream, processor, stream->out.framesPerBuffer)) != S_OK)\r
{\r
LogHostError(hr);\r
goto thread_error;\r
}\r
+\r
+ frames -= stream->out.framesPerBuffer;\r
}\r
}\r
else\r