Skip to content

Commit

Permalink
capture loop removed != 0 in while
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasArvidsson committed Mar 14, 2019
1 parent d5ff390 commit dd31f8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CaptureLoop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ void CaptureLoop::_captureLoop() {
//Check for samples in capture buffer.
assert(_pCaptureDevice->getNextPacketSize(&samplesAvailable));

while (samplesAvailable != 0) {
while (samplesAvailable) {
//Get capture buffer pointer and number of available frames.
assert(_pCaptureDevice->getCaptureBuffer(&pCaptureBuffer, &samplesAvailable, &flags));

Expand Down

0 comments on commit dd31f8b

Please # to comment.