1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
media / base / audio_processing.cc [blame]
// Copyright 2018 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "media/base/audio_processing.h"
#include "base/strings/strcat.h"
namespace media {
std::string AudioProcessingSettings::ToString() const {
auto bool_to_yes_no = [](bool b) -> const char* { return b ? "yes" : "no"; };
return base::StrCat(
{"aec: ", bool_to_yes_no(echo_cancellation),
", ns: ", bool_to_yes_no(noise_suppression),
", gain control: ", bool_to_yes_no(automatic_gain_control),
", multichannel capture processing: ",
bool_to_yes_no(multi_channel_capture_processing)});
}
} // namespace media