Commit 97579542 authored by Philippe Gorley's avatar Philippe Gorley

audio: fix mute

Change-Id: I71fbb873a57eacb83a22474d88cc772c733ea38e
parent 5f1e61d5
......@@ -102,9 +102,8 @@ AudioInput::readFromDevice()
if (not samples)
return;
//if (muteState_) // audio is muted, set samples to 0
// micData_.reset();
// TODO handle mute
if (muteState_)
libav_utils::fillWithSilence(samples->pointer());
std::lock_guard<std::mutex> lk(fmtMutex_);
if (bufferFormat != format_)
......
......@@ -113,6 +113,7 @@ void
AudioSender::setMuted(bool isMuted)
{
muteState_ = isMuted;
audioInput_->setMuted(isMuted);
audioEncoder_->setMuted(isMuted);
}
......
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