using built in audio driver now

This commit is contained in:
devl0rd 2020-04-22 16:26:56 -06:00
parent 133eb8829c
commit 7639223640
3 changed files with 2 additions and 2 deletions

Binary file not shown.

View file

@ -47,7 +47,7 @@ function plugControllerIn() {
function startAudioProcess() { function startAudioProcess() {
ffmpegAudioProcess = spawn( ffmpegAudioProcess = spawn(
"./lib/ffmpeg.exe", "./lib/ffmpeg.exe",
["-y", "-f", "avfoundation", "-i", "audio=virtual-audio-capturer", "-af", "equalizer=f=100:t=h:width=200:g=-64", "-f", "s16le", "-ar", "16000", "-ac", "2", "-c:a", "pcm_s16le", "udp://" + ip + ":2224?pkt_size=640"], ["-y", "-f", "dshow", "-i", "audio=virtual-audio-capturer", "-af", "equalizer=f=100:t=h:width=200:g=-64", "-f", "s16le", "-ar", "16000", "-ac", "2", "-c:a", "pcm_s16le", "udp://" + ip + ":2224?pkt_size=640"],
{ detached: false } { detached: false }
); );
ffmpegAudioProcess.stdout.on("data", data => { ffmpegAudioProcess.stdout.on("data", data => {

View file

@ -1,4 +1,4 @@
@echo off @echo off
cd lib cd lib
ffmpeg.exe -y -f dshow -i audio=virtual-audio-capturer -af equalizer=f=100:t=h:width=200:g=-64 -f s16le -ar 16000 -ac 2 -c:a pcm_s16le outTest.mp3 ffmpeg.exe -y -f dshow -i audio=virtual-audio-capturer -af equalizer=f=100:t=h:width=200:g=-64 -f s16le -ar 16000 -ac 2 -c:a pcm_s16le udp://172.16.0.12:2224?pkt_size=640
pause pause