OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2012 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 #include "webrtc/system_wrappers/interface/trace.h" | 11 #include "webrtc/system_wrappers/include/trace.h" |
12 #include "webrtc/voice_engine/dtmf_inband_queue.h" | 12 #include "webrtc/voice_engine/dtmf_inband_queue.h" |
13 | 13 |
14 namespace webrtc { | 14 namespace webrtc { |
15 | 15 |
16 DtmfInbandQueue::DtmfInbandQueue(int32_t id): | 16 DtmfInbandQueue::DtmfInbandQueue(int32_t id): |
17 _id(id), | 17 _id(id), |
18 _DtmfCritsect(*CriticalSectionWrapper::CreateCriticalSection()), | 18 _DtmfCritsect(*CriticalSectionWrapper::CreateCriticalSection()), |
19 _nextEmptyIndex(0) | 19 _nextEmptyIndex(0) |
20 { | 20 { |
21 memset(_DtmfKey,0, sizeof(_DtmfKey)); | 21 memset(_DtmfKey,0, sizeof(_DtmfKey)); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 } | 79 } |
80 | 80 |
81 void | 81 void |
82 DtmfInbandQueue::ResetDtmf() | 82 DtmfInbandQueue::ResetDtmf() |
83 { | 83 { |
84 CriticalSectionScoped lock(&_DtmfCritsect); | 84 CriticalSectionScoped lock(&_DtmfCritsect); |
85 _nextEmptyIndex = 0; | 85 _nextEmptyIndex = 0; |
86 } | 86 } |
87 | 87 |
88 } // namespace webrtc | 88 } // namespace webrtc |
OLD | NEW |