You've already forked fm-dx-webserver
mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-02-26 22:13:53 +01:00
Fix macOS audio support
This commit is contained in:
@@ -64,8 +64,6 @@ function buildCommand(ffmpegPath) {
|
|||||||
if (!serverConfig.audio.ffmpeg) {
|
if (!serverConfig.audio.ffmpeg) {
|
||||||
logInfo(`${consoleLogTitle} Platform: macOS (darwin) using "coreaudio" with the default audio device.`);
|
logInfo(`${consoleLogTitle} Platform: macOS (darwin) using "coreaudio" with the default audio device.`);
|
||||||
return {
|
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: [],
|
args: [],
|
||||||
recArgs: [
|
recArgs: [
|
||||||
'-t', 'coreaudio',
|
'-t', 'coreaudio',
|
||||||
@@ -76,6 +74,7 @@ function buildCommand(ffmpegPath) {
|
|||||||
'-b', '16',
|
'-b', '16',
|
||||||
'-r', '48000',
|
'-r', '48000',
|
||||||
'-c', `${audioChannels}`
|
'-c', `${audioChannels}`
|
||||||
|
, '-'
|
||||||
]
|
]
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user