Note: We no longer publish the latest version of our code here. We primarily use a kumc-bmi github organization. The heron ETL repository, in particular, is not public. Peers in the informatics community should see MultiSiteDev for details on requesting access.

source: webrtc/webrtc/modules/audio_coding/main/acm2/acm_dtmf_playout.cc @ 0:4bda6873e34c

pub_scrub_3792 tip
Last change on this file since 0:4bda6873e34c was 0:4bda6873e34c, checked in by Michael Prittie <mprittie@…>, 6 years ago

Scrubbed password for publication.

File size: 2.3 KB
Line 
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 "webrtc/modules/audio_coding/main/acm2/acm_dtmf_playout.h"
12
13#ifdef WEBRTC_CODEC_AVT
14#include "webrtc/modules/audio_coding/main/acm2/acm_common_defs.h"
15#include "webrtc/modules/audio_coding/main/acm2/acm_receiver.h"
16#include "webrtc/system_wrappers/interface/trace.h"
17#endif
18
19namespace webrtc {
20
21namespace acm2 {
22
23#ifndef WEBRTC_CODEC_AVT
24
25ACMDTMFPlayout::ACMDTMFPlayout(int16_t /* codec_id */) { return; }
26
27ACMDTMFPlayout::~ACMDTMFPlayout() { return; }
28
29int16_t ACMDTMFPlayout::InternalEncode(uint8_t* /* bitstream */,
30                                       int16_t* /* bitstream_len_byte */) {
31  return -1;
32}
33
34int16_t ACMDTMFPlayout::InternalInitEncoder(
35    WebRtcACMCodecParams* /* codec_params */) {
36  return -1;
37}
38
39ACMGenericCodec* ACMDTMFPlayout::CreateInstance(void) { return NULL; }
40
41int16_t ACMDTMFPlayout::InternalCreateEncoder() { return -1; }
42
43void ACMDTMFPlayout::InternalDestructEncoderInst(void* /* ptr_inst */) {
44  return;
45}
46
47void ACMDTMFPlayout::DestructEncoderSafe() {
48  return;
49}
50
51#else  //===================== Actual Implementation =======================
52
53ACMDTMFPlayout::ACMDTMFPlayout(int16_t codec_id) { codec_id_ = codec_id; }
54
55ACMDTMFPlayout::~ACMDTMFPlayout() { return; }
56
57int16_t ACMDTMFPlayout::InternalEncode(uint8_t* /* bitstream */,
58                                       int16_t* /* bitstream_len_byte */) {
59  return 0;
60}
61
62int16_t ACMDTMFPlayout::InternalInitEncoder(
63    WebRtcACMCodecParams* /* codec_params */) {
64  // This codec does not need initialization,
65  // DTMFPlayout has no instance
66  return 0;
67}
68
69ACMGenericCodec* ACMDTMFPlayout::CreateInstance(void) { return NULL; }
70
71int16_t ACMDTMFPlayout::InternalCreateEncoder() {
72  // DTMFPlayout has no instance
73  return 0;
74}
75
76void ACMDTMFPlayout::InternalDestructEncoderInst(void* /* ptr_inst */) {
77  // DTMFPlayout has no instance
78  return;
79}
80
81void ACMDTMFPlayout::DestructEncoderSafe() {
82  // DTMFPlayout has no instance
83  return;
84}
85
86#endif
87
88}  // namespace acm2
89
90}  // namespace webrtc
Note: See TracBrowser for help on using the repository browser.