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

pulselayer: handle echo canceller from preferences

Change-Id: I0f029c576ecf5045afd3f06ce5106807ce52c30c
parent 51136fdc
No related branches found
No related tags found
No related merge requests found
......@@ -414,8 +414,10 @@ void PulseLayer::startStream(AudioDeviceType type)
// Create Streams
if (type == AudioDeviceType::PLAYBACK) {
if (auto dev_infos = getDeviceInfos(sinkList_, getPreferredPlaybackDevice()))
createStream(playback_, type, *dev_infos, true, std::bind(&PulseLayer::writeToSpeaker, this));
if (auto dev_infos = getDeviceInfos(sinkList_, getPreferredPlaybackDevice())) {
bool ec = preference_.getEchoCanceller() == "system";
createStream(playback_, type, *dev_infos, ec, std::bind(&PulseLayer::writeToSpeaker, this));
}
} else if (type == AudioDeviceType::RINGTONE) {
if (auto dev_infos = getDeviceInfos(sinkList_, getPreferredRingtoneDevice()))
createStream(ringtone_, type, *dev_infos, false, std::bind(&PulseLayer::ringtoneToSpeaker, this));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment