Commit fce23741 authored by Adrien Béraud's avatar Adrien Béraud

opensl: notify play on rec

Change-Id: I13aaf88a3109d601fe667f20ba454749858d7721
parent 8656ab33
......@@ -247,7 +247,7 @@ OpenSLLayer::engineServiceRing(bool waiting) {
void
OpenSLLayer::engineServiceRec(bool /* waiting */) {
//playCv.notify_one();
playCv.notify_one();
recCv.notify_one();
return;
}
......@@ -334,7 +334,7 @@ OpenSLLayer::startAudioCapture()
recThread = std::thread([&]() {
std::unique_lock<std::mutex> lck(recMtx);
while (recorder_) {
recCv.wait(lck);
recCv.wait_for(lck, std::chrono::seconds(1));
if (not recorder_)
break;
sample_buf *buf;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment