Commit 06f52505 authored by Alexandre Lision's avatar Alexandre Lision

dtmf: first dtmf is now played

opensllayer was switching its state to started too early, causing the loss of the
first buffer.
parent ef74f8ea
......@@ -116,6 +116,7 @@ OpenSLThread::run()
opensl_->isStarted_ = true;
while (opensl_->isStarted_)
usleep(20000); // 20 ms
......@@ -167,7 +168,6 @@ OpenSLLayer::startStream()
if (audioThread_ == nullptr) {
audioThread_ = new OpenSLThread(this);
isStarted_ = true;
} else if (!audioThread_->isRunning()) {
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