OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2015 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2015 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_CODECS_ISAC_FIX_SOURCE_ISAC_FIX_TYPE_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_ISAC_FIX_TYPE_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_ISAC_FIX_TYPE_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_ISAC_FIX_TYPE_H_ |
13 | 13 |
| 14 #include "webrtc/base/checks.h" |
14 #include "webrtc/modules/audio_coding/codecs/isac/fix/include/isacfix.h" | 15 #include "webrtc/modules/audio_coding/codecs/isac/fix/include/isacfix.h" |
15 #include "webrtc/rtc_base/checks.h" | |
16 | 16 |
17 namespace webrtc { | 17 namespace webrtc { |
18 | 18 |
19 class IsacFix { | 19 class IsacFix { |
20 public: | 20 public: |
21 using instance_type = ISACFIX_MainStruct; | 21 using instance_type = ISACFIX_MainStruct; |
22 static const bool has_swb = false; | 22 static const bool has_swb = false; |
23 static inline int16_t Control(instance_type* inst, | 23 static inline int16_t Control(instance_type* inst, |
24 int32_t rate, | 24 int32_t rate, |
25 int framesize) { | 25 int framesize) { |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
114 static inline int16_t SetMaxRate(instance_type* inst, int32_t max_bit_rate) { | 114 static inline int16_t SetMaxRate(instance_type* inst, int32_t max_bit_rate) { |
115 return WebRtcIsacfix_SetMaxRate(inst, max_bit_rate); | 115 return WebRtcIsacfix_SetMaxRate(inst, max_bit_rate); |
116 } | 116 } |
117 | 117 |
118 private: | 118 private: |
119 enum { kFixSampleRate = 16000 }; | 119 enum { kFixSampleRate = 16000 }; |
120 }; | 120 }; |
121 | 121 |
122 } // namespace webrtc | 122 } // namespace webrtc |
123 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_ISAC_FIX_TYPE_H_ | 123 #endif // WEBRTC_MODULES_AUDIO_CODING_CODECS_ISAC_FIX_SOURCE_ISAC_FIX_TYPE_H_ |
OLD | NEW |