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

audio hotfix

This commit is contained in:
NoobishSVK
2024-01-31 21:43:21 +01:00
parent 68e60223a3
commit 9d1fed9f0a
2 changed files with 2 additions and 2 deletions

View File

@@ -335,7 +335,7 @@ class FallbackProviderMp3 extends AFallbackProvider {
GetFFmpegArguments() {
return [
"-fflags", "+nobuffer+flush_packets", "-flags", "low_delay", "-rtbufsize", "32", "-probesize", "32",
"-f", "libmp3lame",
"-f", "s16le",
"-ar", this.Server.SampleRate.toString(),
"-ac", this.Server.Channels.toString(),
"-i", "pipe:0",

View File

@@ -12,7 +12,7 @@ function enableAudioStream() {
// Combine all the settings for the ffmpeg command
if (process.platform === 'win32') {
// Windows
ffmpegCommand = `${flags} -f dshow -i audio="${config.audioDeviceName}" ${codec} ${output} pipe:1 | node stream/3las.server.js -port ${config.audioPort} -samplerate 44100 -channels 2`;
ffmpegCommand = `${flags} -f dshow -i audio="${config.audioDeviceName}" ${codec} ${output} pipe:1 | node stream/3las.server.js -port ${config.audioPort} -samplerate 48000 -channels 2`;
} else {
// Linux
ffmpegCommand = `${flags} -f alsa -i "${config.audioDeviceName}" ${codec} ${output} pipe:1 | node stream/3las.server.js -port ${config.audioPort} -samplerate 48000 -channels 2`;