Created
November 14, 2013 21:45
-
-
Save mkroman/7474869 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
taskkill /IM "audiorepeater.exe" /IM "audiorepeater_ks.exe" /T >nul | |
call :audiorepeater TRUE "Virtual Cable 1" "Realtek HD Audio output" | |
call :audiorepeater FALSE "Line 2 (Virtual Audio Cable)" "Line 1 (Virtual Audio Cable)" | |
goto :EOF | |
:audiorepeater | |
if %1==TRUE ( | |
echo [KERNEL] %2 -^> %3 | |
start "" /min "C:\Program Files\Virtual Audio Cable\audiorepeater_ks.exe" /Input: %2 /Output: %3 /SamplingRate: 48000 /BufferMs: 50 /Buffers: 8 /Autostart | |
) else ( | |
echo [ WAVE ] %2 -^> %3 | |
start "" /min "C:\Program Files\Virtual Audio Cable\audiorepeater.exe" /Input: %2 /Output: %3 /SamplingRate: 48000 /BufferMs: 50 /Buffers: 8 /Autostart | |
) | |
goto :EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment