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/modules/audio_coding/neteq/audio_multi_vector.h" | 11 #include "webrtc/modules/audio_coding/neteq/audio_multi_vector.h" |
12 | 12 |
13 #include <assert.h> | 13 #include <assert.h> |
14 | 14 |
15 #include <algorithm> | 15 #include <algorithm> |
16 | 16 |
17 #include "webrtc/rtc_base/checks.h" | 17 #include "webrtc/base/checks.h" |
18 #include "webrtc/typedefs.h" | 18 #include "webrtc/typedefs.h" |
19 | 19 |
20 namespace webrtc { | 20 namespace webrtc { |
21 | 21 |
22 AudioMultiVector::AudioMultiVector(size_t N) { | 22 AudioMultiVector::AudioMultiVector(size_t N) { |
23 assert(N > 0); | 23 assert(N > 0); |
24 if (N < 1) N = 1; | 24 if (N < 1) N = 1; |
25 for (size_t n = 0; n < N; ++n) { | 25 for (size_t n = 0; n < N; ++n) { |
26 channels_.push_back(new AudioVector); | 26 channels_.push_back(new AudioVector); |
27 } | 27 } |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
213 | 213 |
214 const AudioVector& AudioMultiVector::operator[](size_t index) const { | 214 const AudioVector& AudioMultiVector::operator[](size_t index) const { |
215 return *(channels_[index]); | 215 return *(channels_[index]); |
216 } | 216 } |
217 | 217 |
218 AudioVector& AudioMultiVector::operator[](size_t index) { | 218 AudioVector& AudioMultiVector::operator[](size_t index) { |
219 return *(channels_[index]); | 219 return *(channels_[index]); |
220 } | 220 } |
221 | 221 |
222 } // namespace webrtc | 222 } // namespace webrtc |
OLD | NEW |