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 |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
85 uint32_t end_timestamp() const { return end_timestamp_; } | 85 uint32_t end_timestamp() const { return end_timestamp_; } |
86 void set_end_timestamp(uint32_t value) { end_timestamp_ = value; } | 86 void set_end_timestamp(uint32_t value) { end_timestamp_ = value; } |
87 size_t dtmf_index() const { return dtmf_index_; } | 87 size_t dtmf_index() const { return dtmf_index_; } |
88 void set_dtmf_index(size_t value); | 88 void set_dtmf_index(size_t value); |
89 | 89 |
90 private: | 90 private: |
91 size_t next_index_; | 91 size_t next_index_; |
92 uint32_t end_timestamp_; // The timestamp of the last sample in the buffer. | 92 uint32_t end_timestamp_; // The timestamp of the last sample in the buffer. |
93 size_t dtmf_index_; // Index to the first non-DTMF sample in the buffer. | 93 size_t dtmf_index_; // Index to the first non-DTMF sample in the buffer. |
94 | 94 |
95 DISALLOW_COPY_AND_ASSIGN(SyncBuffer); | 95 RTC_DISALLOW_COPY_AND_ASSIGN(SyncBuffer); |
96 }; | 96 }; |
97 | 97 |
98 } // namespace webrtc | 98 } // namespace webrtc |
99 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_SYNC_BUFFER_H_ | 99 #endif // WEBRTC_MODULES_AUDIO_CODING_NETEQ_SYNC_BUFFER_H_ |
OLD | NEW |