1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 14:11:59 +01:00

Fix macOS audio support

This commit is contained in:
Mark de Bruijn
2025-09-13 12:14:18 +02:00
parent b976d7275a
commit 418a2f98b9

View File

@@ -64,8 +64,6 @@ function buildCommand(ffmpegPath) {
if (!serverConfig.audio.ffmpeg) {
logInfo(`${consoleLogTitle} Platform: macOS (darwin) using "coreaudio" with the default audio device.`);
return {
// command not used if recArgs are used
command: `rec -t coreaudio -b 32 -r 48000 -c ${audioChannels} -t raw -b 16 -r 48000 -c ${audioChannels}`,
args: [],
recArgs: [
'-t', 'coreaudio',
@@ -76,6 +74,7 @@ function buildCommand(ffmpegPath) {
'-b', '16',
'-r', '48000',
'-c', `${audioChannels}`
, '-'
]
};
} else {