You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-26 14:11:59 +01:00
Lowering audio boost to 1.7 in order to prevent saturation
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user