Merge pull request #168 from LucasGallone/main

Lowering audio boost to 1.7 in order to prevent saturation
This commit is contained in:
Marek Farkaš
2025-09-11 13:43:22 +02:00
committed by GitHub
+3 -3
View File
@@ -154,7 +154,7 @@ checkFFmpeg().then((ffmpegPath) => {
// Apply audio boost if enabled // Apply audio boost if enabled
if (serverConfig.audio.audioBoost) { if (serverConfig.audio.audioBoost) {
ffmpegArgs.splice(ffmpegArgs.indexOf('pipe:1'), 0, '-af', 'volume=2.5'); ffmpegArgs.splice(ffmpegArgs.indexOf('pipe:1'), 0, '-af', 'volume=1.7');
} }
logDebug(`${consoleLogTitle} Launching FFmpeg with args: ${ffmpegArgs.join(' ')}`); logDebug(`${consoleLogTitle} Launching FFmpeg with args: ${ffmpegArgs.join(' ')}`);
@@ -234,7 +234,7 @@ checkFFmpeg().then((ffmpegPath) => {
// Apply audio boost if enabled and FFmpeg is used // Apply audio boost if enabled and FFmpeg is used
if (serverConfig.audio.audioBoost && serverConfig.audio.ffmpeg) { if (serverConfig.audio.audioBoost && serverConfig.audio.ffmpeg) {
commandDef.args.splice(commandDef.recArgs.indexOf('pipe:1'), 0, '-af', 'volume=2.5'); commandDef.args.splice(commandDef.recArgs.indexOf('pipe:1'), 0, '-af', 'volume=1.7');
} }
function startRec() { function startRec() {
@@ -314,7 +314,7 @@ checkFFmpeg().then((ffmpegPath) => {
// Apply audio boost if enabled and FFmpeg is used // Apply audio boost if enabled and FFmpeg is used
if (serverConfig.audio.audioBoost && serverConfig.audio.ffmpeg) { if (serverConfig.audio.audioBoost && serverConfig.audio.ffmpeg) {
commandDef.args.splice(commandDef.args.indexOf('pipe:1'), 0, '-af', 'volume=2.5'); commandDef.args.splice(commandDef.args.indexOf('pipe:1'), 0, '-af', 'volume=1.7');
} }
function startArecord() { function startArecord() {