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/api/audio_codecs/audio_decoder.h" | 11 #include "webrtc/api/audio_codecs/audio_decoder.h" |
12 | 12 |
13 #include <assert.h> | 13 #include <assert.h> |
14 #include <memory> | 14 #include <memory> |
15 #include <utility> | 15 #include <utility> |
16 | 16 |
17 #include "webrtc/rtc_base/array_view.h" | 17 #include "webrtc/api/array_view.h" |
18 #include "webrtc/rtc_base/checks.h" | 18 #include "webrtc/rtc_base/checks.h" |
19 #include "webrtc/rtc_base/sanitizer.h" | 19 #include "webrtc/rtc_base/sanitizer.h" |
20 #include "webrtc/rtc_base/trace_event.h" | 20 #include "webrtc/rtc_base/trace_event.h" |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 namespace { | 24 namespace { |
25 | 25 |
26 class OldStyleEncodedFrame final : public AudioDecoder::EncodedAudioFrame { | 26 class OldStyleEncodedFrame final : public AudioDecoder::EncodedAudioFrame { |
27 public: | 27 public: |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
160 return kSpeech; | 160 return kSpeech; |
161 case 2: | 161 case 2: |
162 return kComfortNoise; | 162 return kComfortNoise; |
163 default: | 163 default: |
164 assert(false); | 164 assert(false); |
165 return kSpeech; | 165 return kSpeech; |
166 } | 166 } |
167 } | 167 } |
168 | 168 |
169 } // namespace webrtc | 169 } // namespace webrtc |
OLD | NEW |