1
0
mirror of https://github.com/KubaPro010/fm-dx-webserver.git synced 2026-02-26 22:13:53 +01:00

bugfixes / more code cleanup

This commit is contained in:
NoobishSVK
2024-03-21 22:30:18 +01:00
parent 0f10e04bcd
commit 8f4c96ce12
12 changed files with 166 additions and 81 deletions

View File

@@ -2,6 +2,7 @@
const exec = require('child_process').exec;
const fs = require('fs');
const ffmpeg = require('ffmpeg-static');
const filePath = '/proc/asound/cards';
const platform = process.platform;
@@ -15,7 +16,7 @@ function parseAudioDevice(options, callback) {
options = null;
}
options = options || {};
const ffmpegPath = options.ffmpegPath || 'ffmpeg';
const ffmpegPath = ffmpeg.replace(/\\/g, '\\\\');
const callbackExists = typeof callback === 'function';
let inputDevice, prefix, audioSeparator, alternativeName, deviceParams;