tor-browser

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

opus_inst.h (1429B)


      1 /*
      2 *  Copyright (c) 2014 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 #ifndef MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_
     12 #define MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_
     13 
     14 #include <stddef.h>
     15 
     16 #include "rtc_base/ignore_wundef.h"
     17 
     18 RTC_PUSH_IGNORING_WUNDEF()
     19 #include "third_party/opus/src/include/opus.h"          // IWYU pragma: export
     20 #include "third_party/opus/src/include/opus_defines.h"  // IWYU pragma: export
     21 #include "third_party/opus/src/include/opus_multistream.h"  // IWYU pragma: export
     22 #include "third_party/opus/src/include/opus_types.h"  // IWYU pragma: export
     23 RTC_POP_IGNORING_WUNDEF()
     24 
     25 struct WebRtcOpusEncInst {
     26  OpusEncoder* encoder;
     27  OpusMSEncoder* multistream_encoder;
     28  size_t channels;
     29  int in_dtx_mode;
     30  int sample_rate_hz;
     31 };
     32 
     33 struct WebRtcOpusDecInst {
     34  OpusDecoder* decoder;
     35  OpusMSDecoder* multistream_decoder;
     36  size_t channels;
     37  int in_dtx_mode;
     38  int sample_rate_hz;
     39  // TODO: https://issues.webrtc.org/376493209 - Remove when libopus gets fixed.
     40  int last_packet_num_channels;
     41 };
     42 
     43 #endif  // MODULES_AUDIO_CODING_CODECS_OPUS_OPUS_INST_H_