| 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 true; | 49 true; |
| 50 #endif | 50 #endif |
| 51 const GainControl::Mode kDefaultRxAgcMode = GainControl::kAdaptiveDigital; | 51 const GainControl::Mode kDefaultRxAgcMode = GainControl::kAdaptiveDigital; |
| 52 | 52 |
| 53 // VideoSync | 53 // VideoSync |
| 54 // Lowest minimum playout delay | 54 // Lowest minimum playout delay |
| 55 enum { kVoiceEngineMinMinPlayoutDelayMs = 0 }; | 55 enum { kVoiceEngineMinMinPlayoutDelayMs = 0 }; |
| 56 // Highest minimum playout delay | 56 // Highest minimum playout delay |
| 57 enum { kVoiceEngineMaxMinPlayoutDelayMs = 10000 }; | 57 enum { kVoiceEngineMaxMinPlayoutDelayMs = 10000 }; |
| 58 | 58 |
| 59 // RTP/RTCP | |
| 60 // Min 4-bit ID for RTP extension (see section 4.2 in RFC 5285) | |
| 61 enum { kVoiceEngineMinRtpExtensionId = 1 }; | |
| 62 // Max 4-bit ID for RTP extension | |
| 63 enum { kVoiceEngineMaxRtpExtensionId = 14 }; | |
| 64 | |
| 65 } // namespace webrtc | 59 } // namespace webrtc |
| 66 | 60 |
| 67 namespace webrtc { | 61 namespace webrtc { |
| 68 | 62 |
| 69 inline int VoEId(int veId, int chId) { | 63 inline int VoEId(int veId, int chId) { |
| 70 if (chId == -1) { | 64 if (chId == -1) { |
| 71 const int dummyChannel(99); | 65 const int dummyChannel(99); |
| 72 return (int)((veId << 16) + dummyChannel); | 66 return (int)((veId << 16) + dummyChannel); |
| 73 } | 67 } |
| 74 return (int)((veId << 16) + chId); | 68 return (int)((veId << 16) + chId); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 86 } // namespace webrtc | 80 } // namespace webrtc |
| 87 | 81 |
| 88 #if defined(_WIN32) | 82 #if defined(_WIN32) |
| 89 #define WEBRTC_VOICE_ENGINE_DEFAULT_DEVICE \ | 83 #define WEBRTC_VOICE_ENGINE_DEFAULT_DEVICE \ |
| 90 AudioDeviceModule::kDefaultCommunicationDevice | 84 AudioDeviceModule::kDefaultCommunicationDevice |
| 91 #else | 85 #else |
| 92 #define WEBRTC_VOICE_ENGINE_DEFAULT_DEVICE 0 | 86 #define WEBRTC_VOICE_ENGINE_DEFAULT_DEVICE 0 |
| 93 #endif // #if (defined(_WIN32) | 87 #endif // #if (defined(_WIN32) |
| 94 | 88 |
| 95 #endif // VOICE_ENGINE_VOICE_ENGINE_DEFINES_H_ | 89 #endif // VOICE_ENGINE_VOICE_ENGINE_DEFINES_H_ |
| OLD | NEW |