Skip to content
Snippets Groups Projects
Commit 450cc32a authored by Adrien Béraud's avatar Adrien Béraud
Browse files

AudioInput: read data if our own buffer is empty

Change-Id: If56905f3544f751a43e7a44ced87e5faa01cd458
parent 833fe97b
No related branches found
No related tags found
No related merge requests found
...@@ -112,7 +112,7 @@ AudioInput::readFromDevice() ...@@ -112,7 +112,7 @@ AudioInput::readFromDevice()
while (ringBuf_ && ringBuf_->isEmpty()) while (ringBuf_ && ringBuf_->isEmpty())
readFromFile(); readFromFile();
if (playingFile_) { if (playingFile_) {
while (ringBuf_ && ringBuf_->isEmpty()) while (ringBuf_ && ringBuf_->getLength(id_) == 0)
readFromQueue(); readFromQueue();
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment