Skip to content
Snippets Groups Projects
Commit 6b2744ef authored by Philippe Gorley's avatar Philippe Gorley Committed by Adrien Béraud
Browse files

audio: play file audio locally when streaming

Change-Id: Ie6b0b0090c451db7f8df3f53dbbc45726bfe08f2
parent c0766a6e
Branches
No related tags found
No related merge requests found
......@@ -167,7 +167,10 @@ AudioInput::initFile(const std::string& path)
return initDevice("");
}
fileBuf_ = Manager::instance().getRingBufferPool().createRingBuffer(fileId_);
// have file audio mixed into the call buffer so it gets sent to the peer
Manager::instance().getRingBufferPool().bindHalfDuplexOut(id_, fileId_);
// have file audio mixed into the local buffer so it gets played
Manager::instance().getRingBufferPool().bindHalfDuplexOut(RingBufferPool::DEFAULT_ID, fileId_);
decodingFile_ = true;
return true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment