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

opensl: use AEC when relevant

Change-Id: I38ffcd79e3392b1eb8a763914fa182e1f17a2685
parent e8070b08
Branches
Tags
No related merge requests found
......@@ -69,6 +69,7 @@ OpenSLLayer::startStream(AudioDeviceType stream)
player_->setBufQueue(&playBufQueue_, &freePlayBufQueue_);
player_->registerCallback(std::bind(&OpenSLLayer::engineServicePlay, this));
player_->start();
playbackChanged(true);
} catch (const std::exception& e) {
JAMI_ERR("Error initializing audio playback: %s", e.what());
}
......@@ -116,6 +117,7 @@ OpenSLLayer::stopStream(AudioDeviceType stream)
if (stream == AudioDeviceType::PLAYBACK) {
if (player_) {
playbackChanged(false);
player_->stop();
player_.reset();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment