blob: 155ddf2cf3db98af1c1d74871c6d4427aafa3147 [file] [log] [blame]
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +00001/*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 *
4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source
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
Ivo Creusen3ce44a32019-10-31 14:38:11 +010011#include "api/neteq/neteq.h"
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000012
Jonas Olsson3531ee12018-04-04 11:21:27 +020013#include "rtc_base/strings/string_builder.h"
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000014
15namespace webrtc {
16
Karl Wiberg08126342018-03-20 19:18:55 +010017NetEq::Config::Config() = default;
18NetEq::Config::Config(const Config&) = default;
19NetEq::Config::Config(Config&&) = default;
20NetEq::Config::~Config() = default;
21NetEq::Config& NetEq::Config::operator=(const Config&) = default;
22NetEq::Config& NetEq::Config::operator=(Config&&) = default;
23
Henrik Lundin905495c2015-05-25 16:58:41 +020024std::string NetEq::Config::ToString() const {
Jonas Olsson3531ee12018-04-04 11:21:27 +020025 char buf[1024];
26 rtc::SimpleStringBuilder ss(buf);
Yves Gerey665174f2018-06-19 15:03:05 +020027 ss << "sample_rate_hz=" << sample_rate_hz << ", enable_post_decode_vad="
henrik.lundin9bc26672015-11-02 03:25:57 -080028 << (enable_post_decode_vad ? "true" : "false")
Henrik Lundin905495c2015-05-25 16:58:41 +020029 << ", max_packets_in_buffer=" << max_packets_in_buffer
Jakob Ivarsson39b934b2019-01-10 10:28:23 +010030 << ", min_delay_ms=" << min_delay_ms << ", enable_fast_accelerate="
31 << (enable_fast_accelerate ? "true" : "false")
32 << ", enable_muted_state=" << (enable_muted_state ? "true" : "false")
Jakob Ivarsson4a97d722021-11-08 17:22:51 +010033 << ", enable_rtx_handling=" << (enable_rtx_handling ? "true" : "false");
Henrik Lundin905495c2015-05-25 16:58:41 +020034 return ss.str();
35}
36
henrik.lundin@webrtc.orgd94659d2013-01-29 12:09:21 +000037} // namespace webrtc