tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

neteq.cc (1341B)


      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 <string>
     14 
     15 #include "rtc_base/strings/string_builder.h"
     16 
     17 namespace webrtc {
     18 
     19 NetEq::Config::Config() = default;
     20 NetEq::Config::Config(const Config&) = default;
     21 NetEq::Config::Config(Config&&) = default;
     22 NetEq::Config::~Config() = default;
     23 NetEq::Config& NetEq::Config::operator=(const Config&) = default;
     24 NetEq::Config& NetEq::Config::operator=(Config&&) = default;
     25 
     26 std::string NetEq::Config::ToString() const {
     27  char buf[1024];
     28  SimpleStringBuilder ss(buf);
     29  ss << "sample_rate_hz=" << sample_rate_hz
     30     << ", max_packets_in_buffer=" << max_packets_in_buffer
     31     << ", min_delay_ms=" << min_delay_ms << ", enable_fast_accelerate="
     32     << (enable_fast_accelerate ? "true" : "false")
     33     << ", enable_muted_state=" << (enable_muted_state ? "true" : "false")
     34     << ", enable_rtx_handling=" << (enable_rtx_handling ? "true" : "false");
     35  return ss.str();
     36 }
     37 
     38 }  // namespace webrtc