• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
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 
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 
ToString() const24 std::string NetEq::Config::ToString() const {
25   char buf[1024];
26   rtc::SimpleStringBuilder ss(buf);
27   ss << "sample_rate_hz=" << sample_rate_hz << ", enable_post_decode_vad="
28      << (enable_post_decode_vad ? "true" : "false")
29      << ", max_packets_in_buffer=" << max_packets_in_buffer
30      << ", min_delay_ms=" << min_delay_ms << ", enable_fast_accelerate="
31      << (enable_fast_accelerate ? "true" : "false")
32      << ", enable_muted_state=" << (enable_muted_state ? "true" : "false")
33      << ", enable_rtx_handling=" << (enable_rtx_handling ? "true" : "false")
34      << ", extra_output_delay_ms=" << extra_output_delay_ms;
35   return ss.str();
36 }
37 
38 }  // namespace webrtc
39