Skip to content

Instantly share code, notes, and snippets.

@mkroman
Created November 14, 2013 21:45
Show Gist options
  • Save mkroman/7474869 to your computer and use it in GitHub Desktop.
Save mkroman/7474869 to your computer and use it in GitHub Desktop.
@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