| 6 | * tree. An additional intellectual property rights grant can be found |
| 7 | * in the file PATENTS. All contributing project authors may |
| 8 | * be found in the AUTHORS file in the root of the source tree. |
| 9 | */ |
| 10 |
| 11 | #include "api/neteq/neteq.h" |
| 12 |
| 13 | #include "rtc_base/strings/string_builder.h" |
| 14 |
| 15 | namespace webrtc { |
| 16 |
| 17 | NetEq::Config::Config() = default; |
| 18 | NetEq::Config::Config(const Config&) = default; |
| 19 | NetEq::Config::Config(Config&&) = default; |
| 20 | NetEq::Config::~Config() = default; |
| 21 | NetEq::Config& NetEq::Config::operator=(const Config&) = default; |
| 22 | NetEq::Config& NetEq::Config::operator=(Config&&) = default; |
| 23 |
| 24 | std::string NetEq::Config::ToString() const { |
| 25 | char buf[1024]; |
| 26 | rtc::SimpleStringBuilder ss(buf); |
| 27 | ss << "sample_rate_hz=" << sample_rate_hz |
| 28 | << ", max_packets_in_buffer=" << max_packets_in_buffer |
| 29 | << ", min_delay_ms=" << min_delay_ms << ", enable_fast_accelerate=" |
| 30 | << (enable_fast_accelerate ? "true" : "false") |
| 31 | << ", enable_muted_state=" << (enable_muted_state ? "true" : "false") |
| 32 | << ", enable_rtx_handling=" << (enable_rtx_handling ? "true" : "false"); |
| 33 | return ss.str(); |
| 34 | } |
| 35 |
| 36 | } // namespace webrtc |
| 37 |