OLD | NEW |
1 /* | 1 /* |
2 * Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | 2 * Copyright (c) 2011 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_MAIN_ACM2_ACM_COMMON_DEFS_H_ | 11 #ifndef WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_COMMON_DEFS_H_ |
12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_COMMON_DEFS_H_ | 12 #define WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_COMMON_DEFS_H_ |
13 | 13 |
14 #include "webrtc/engine_configurations.h" | 14 #include "webrtc/engine_configurations.h" |
15 | 15 |
16 // Checks for enabled codecs, we prevent enabling codecs which are not | 16 // Checks for enabled codecs, we prevent enabling codecs which are not |
17 // compatible. | 17 // compatible. |
18 #if ((defined WEBRTC_CODEC_ISAC) && (defined WEBRTC_CODEC_ISACFX)) | 18 #if ((defined WEBRTC_CODEC_ISAC) && (defined WEBRTC_CODEC_ISACFX)) |
19 #error iSAC and iSACFX codecs cannot be enabled at the same time | 19 #error iSAC and iSACFX codecs cannot be enabled at the same time |
20 #endif | 20 #endif |
21 | 21 |
22 namespace webrtc { | 22 namespace webrtc { |
23 | 23 |
24 // The maximum size of a payload, that is 60 ms of PCM-16 @ 32 kHz stereo | |
25 #define MAX_PAYLOAD_SIZE_BYTE 7680 | |
26 | |
27 // General codec specific defines | 24 // General codec specific defines |
28 const int kIsacWbDefaultRate = 32000; | 25 const int kIsacWbDefaultRate = 32000; |
29 const int kIsacSwbDefaultRate = 56000; | 26 const int kIsacSwbDefaultRate = 56000; |
30 const int kIsacPacSize480 = 480; | 27 const int kIsacPacSize480 = 480; |
31 const int kIsacPacSize960 = 960; | 28 const int kIsacPacSize960 = 960; |
32 const int kIsacPacSize1440 = 1440; | 29 const int kIsacPacSize1440 = 1440; |
33 | 30 |
34 } // namespace webrtc | 31 } // namespace webrtc |
35 | 32 |
36 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_COMMON_DEFS_H_ | 33 #endif // WEBRTC_MODULES_AUDIO_CODING_MAIN_ACM2_ACM_COMMON_DEFS_H_ |
OLD | NEW |