| /* |
| * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. |
| * |
| * Use of this source code is governed by a BSD-style license |
| * that can be found in the LICENSE file in the root of the source |
| * tree. An additional intellectual property rights grant can be found |
| * in the file PATENTS. All contributing project authors may |
| * be found in the AUTHORS file in the root of the source tree. |
| */ |
| |
| /* |
| * This file contains common constants for VoiceEngine, as well as |
| * platform specific settings. |
| */ |
| |
| #ifndef VOICE_ENGINE_VOICE_ENGINE_DEFINES_H_ |
| #define VOICE_ENGINE_VOICE_ENGINE_DEFINES_H_ |
| |
| #include "modules/audio_processing/include/audio_processing.h" |
| |
| namespace webrtc { |
| |
| // VolumeControl |
| enum { kMinVolumeLevel = 0 }; |
| enum { kMaxVolumeLevel = 255 }; |
| |
| // Audio processing |
| const NoiseSuppression::Level kDefaultNsMode = NoiseSuppression::kModerate; |
| const GainControl::Mode kDefaultAgcMode = |
| #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS) |
| GainControl::kAdaptiveDigital; |
| #else |
| GainControl::kAdaptiveAnalog; |
| #endif |
| const bool kDefaultAgcState = |
| #if defined(WEBRTC_ANDROID) || defined(WEBRTC_IOS) |
| false; |
| #else |
| true; |
| #endif |
| |
| // VideoSync |
| // Lowest minimum playout delay |
| enum { kVoiceEngineMinMinPlayoutDelayMs = 0 }; |
| // Highest minimum playout delay |
| enum { kVoiceEngineMaxMinPlayoutDelayMs = 10000 }; |
| |
| } // namespace webrtc |
| |
| #endif // VOICE_ENGINE_VOICE_ENGINE_DEFINES_H_ |