Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(307)

Side by Side Diff: webrtc/voice_engine/dtmf_inband.h

Issue 1776243003: Revert of - Clean up unused voice engine DTMF code. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@voe_dtmf_1
Patch Set: Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « webrtc/voice_engine/channel_proxy.cc ('k') | webrtc/voice_engine/dtmf_inband_queue.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 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 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 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #ifndef WEBRTC_VOICE_ENGINE_DTMF_INBAND_H_ 11 #ifndef WEBRTC_VOICE_ENGINE_DTMF_INBAND_H_
12 #define WEBRTC_VOICE_ENGINE_DTMF_INBAND_H_ 12 #define WEBRTC_VOICE_ENGINE_DTMF_INBAND_H_
13 13
14 #include "webrtc/typedefs.h" 14 #include "webrtc/typedefs.h"
15 #include "webrtc/voice_engine/voice_engine_defines.h" 15 #include "webrtc/voice_engine/voice_engine_defines.h"
16 #include "webrtc/base/criticalsection.h" 16 #include "webrtc/base/criticalsection.h"
17 17
18 namespace webrtc { 18 namespace webrtc {
19 19
20 // TODO(solenberg): Used as a DTMF tone generator in voe::OutputMixer. Pull out
21 // the one in NetEq and use that instead? We don't need several
22 // implemenations of this.
23 class DtmfInband 20 class DtmfInband
24 { 21 {
25 public: 22 public:
26 DtmfInband(int32_t id); 23 DtmfInband(int32_t id);
27 24
28 virtual ~DtmfInband(); 25 virtual ~DtmfInband();
29 26
30 void Init(); 27 void Init();
31 28
32 int SetSampleRate(uint16_t frequency); 29 int SetSampleRate(uint16_t frequency);
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 int16_t _attenuationDb; // [0, 36] 78 int16_t _attenuationDb; // [0, 36]
82 int32_t _lengthMs; 79 int32_t _lengthMs;
83 bool _reinit; // 'true' if the oscillator should be reinit for next event 80 bool _reinit; // 'true' if the oscillator should be reinit for next event
84 bool _playing; 81 bool _playing;
85 uint32_t _delaySinceLastToneMS; // time since last generated tone [ms] 82 uint32_t _delaySinceLastToneMS; // time since last generated tone [ms]
86 }; 83 };
87 84
88 } // namespace webrtc 85 } // namespace webrtc
89 86
90 #endif // #ifndef WEBRTC_VOICE_ENGINE_DTMF_INBAND_H_ 87 #endif // #ifndef WEBRTC_VOICE_ENGINE_DTMF_INBAND_H_
OLDNEW
« no previous file with comments | « webrtc/voice_engine/channel_proxy.cc ('k') | webrtc/voice_engine/dtmf_inband_queue.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698