Index: voice_engine/voice_engine_defines.h |
diff --git a/voice_engine/voice_engine_defines.h b/voice_engine/voice_engine_defines.h |
index 43976620570666f6af19ff7821f29987b4d68913..bc5eb1b81f9bfebb4ce4479787eba0ce751c21de 100644 |
--- a/voice_engine/voice_engine_defines.h |
+++ b/voice_engine/voice_engine_defines.h |
@@ -16,13 +16,23 @@ |
#ifndef VOICE_ENGINE_VOICE_ENGINE_DEFINES_H_ |
#define VOICE_ENGINE_VOICE_ENGINE_DEFINES_H_ |
+#include "common_types.h" // NOLINT(build/include) |
#include "modules/audio_processing/include/audio_processing.h" |
+#include "typedefs.h" // NOLINT(build/include) |
namespace webrtc { |
// VolumeControl |
enum { kMinVolumeLevel = 0 }; |
enum { kMaxVolumeLevel = 255 }; |
+// Min scale factor for per-channel volume scaling |
+const float kMinOutputVolumeScaling = 0.0f; |
+// Max scale factor for per-channel volume scaling |
+const float kMaxOutputVolumeScaling = 10.0f; |
+// Min scale factor for output volume panning |
+const float kMinOutputVolumePanning = 0.0f; |
+// Max scale factor for output volume panning |
+const float kMaxOutputVolumePanning = 1.0f; |
// Audio processing |
const NoiseSuppression::Level kDefaultNsMode = NoiseSuppression::kModerate; |
@@ -38,6 +48,7 @@ |
#else |
true; |
#endif |
+const GainControl::Mode kDefaultRxAgcMode = GainControl::kAdaptiveDigital; |
// VideoSync |
// Lowest minimum playout delay |
@@ -57,6 +68,15 @@ |
return (int)((veId << 16) + chId); |
} |
+inline int VoEModuleId(int veId, int chId) { |
+ return (int)((veId << 16) + chId); |
+} |
+ |
+// Convert module ID to internal VoE channel ID |
+inline int VoEChannelId(int moduleId) { |
+ return (int)(moduleId & 0xffff); |
+} |
+ |
} // namespace webrtc |
#if defined(_WIN32) |