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 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_SYNC_BUFFER_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_NETEQ_SYNC_BUFFER_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_SYNC_BUFFER_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_NETEQ_SYNC_BUFFER_H_ |
13 | 13 |
14 #include "webrtc/base/constructormagic.h" | |
15 #include "webrtc/modules/audio_coding/neteq/audio_multi_vector.h" | 14 #include "webrtc/modules/audio_coding/neteq/audio_multi_vector.h" |
16 #include "webrtc/modules/include/module_common_types.h" | 15 #include "webrtc/modules/include/module_common_types.h" |
| 16 #include "webrtc/rtc_base/constructormagic.h" |
17 #include "webrtc/typedefs.h" | 17 #include "webrtc/typedefs.h" |
18 | 18 |
19 namespace webrtc { | 19 namespace webrtc { |
20 | 20 |
21 class SyncBuffer : public AudioMultiVector { | 21 class SyncBuffer : public AudioMultiVector { |
22 public: | 22 public: |
23 SyncBuffer(size_t channels, size_t length) | 23 SyncBuffer(size_t channels, size_t length) |
24 : AudioMultiVector(channels, length), | 24 : AudioMultiVector(channels, length), |
25 next_index_(length), | 25 next_index_(length), |
26 end_timestamp_(0), | 26 end_timestamp_(0), |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 private: | 92 private: |
93 size_t next_index_; | 93 size_t next_index_; |
94 uint32_t end_timestamp_; // The timestamp of the last sample in the buffer. | 94 uint32_t end_timestamp_; // The timestamp of the last sample in the buffer. |
95 size_t dtmf_index_; // Index to the first non-DTMF sample in the buffer. | 95 size_t dtmf_index_; // Index to the first non-DTMF sample in the buffer. |
96 | 96 |
97 RTC_DISALLOW_COPY_AND_ASSIGN(SyncBuffer); | 97 RTC_DISALLOW_COPY_AND_ASSIGN(SyncBuffer); |
98 }; | 98 }; |
99 | 99 |
100 } // namespace webrtc | 100 } // namespace webrtc |
101 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_SYNC_BUFFER_H_ | 101 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_SYNC_BUFFER_H_ |
OLD | NEW |