Set default mic gain to 2.0 and remove loopback monitor gain

This commit is contained in:
Kai
2026-02-13 16:20:44 +01:00
parent bd3b73e387
commit 2ce87e8cce
2 changed files with 3 additions and 9 deletions

View File

@@ -11,7 +11,6 @@ static constexpr bool kSerialCommandEcho = EVS_SERIAL_COMMAND_ECHO;
static constexpr bool kMicUseRightChannel = EVS_MIC_USE_RIGHT_CHANNEL;
static constexpr int kMicS24ToS16Shift = EVS_MIC_S24_TO_S16_SHIFT;
static constexpr float kMicGain = EVS_MIC_GAIN;
static constexpr float kLoopbackMonitorGain = EVS_LOOPBACK_MONITOR_GAIN;
// ---------------------------
// Project config
@@ -447,10 +446,7 @@ void loop() {
publishMicTelemetryIfDue(pcm16, sampleCount);
} else if (g_mode == DeviceMode::LocalLoopback) {
for (size_t i = 0; i < sampleCount; ++i) {
float v = (float)pcm16[i] * kLoopbackMonitorGain;
if (v > 32767.0f) v = 32767.0f;
if (v < -32768.0f) v = -32768.0f;
enqueuePcmSample((int16_t)v);
enqueuePcmSample(pcm16[i]);
}
} else {
// idle