Skip to content
Snippets Groups Projects
Commit fe90d939 authored by Adrien Béraud's avatar Adrien Béraud Committed by Sébastien Blin
Browse files

alsa: use echo cancellation

Change-Id: Ied9f4a735da074e3519083b2faaac4a1b5551ab7
parent 3d43703b
Branches
No related tags found
No related merge requests found
......@@ -102,7 +102,9 @@ AlsaLayer::AlsaLayer(const AudioPreference& pref)
, is_playback_open_(false)
, is_capture_open_(false)
, audioThread_(nullptr)
{}
{
setHasNativeAEC(false);
}
AlsaLayer::~AlsaLayer()
{
......@@ -121,11 +123,19 @@ AlsaLayer::~AlsaLayer()
void
AlsaLayer::run(const std::atomic<bool>& isRunning)
{
if (playbackHandle_)
playbackChanged(true);
if (captureHandle_)
recordChanged(true);
while (status_ == Status::Started and isRunning) {
playback();
ringtone();
capture();
}
playbackChanged(false);
recordChanged(false);
}
// Retry approach taken from pa_linux_alsa.c, part of PortAudio
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment