skare

Untitled

Feb 5th, 2017
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. @echo off
  2. :: Contact me on YouTube at http://www.youtube.com/user/FtDSpartn if you have any troubles.
  3. ::::::::::::::
  4. :: Settings ::
  5. ::::::::::::::
  6. :: Window Name              -- The name of the audio repeater window. Leave blank to use default.
  7. set arWindowName=
  8. :: Path                     -- The path to the audio repeater executable.
  9. set arPath=D:\Program Files\Virtual Audio Cable\audiorepeater.exe
  10. :: Input device name        -- The name of the device to take input from. This must be exactly as it appears in Audio Repeater.
  11. set arInput=Line 1 (Virtual Audio Cable)
  12. :: Output device name       -- The name of the device to output to. This must be exactly as it appears in Audio Repeater.
  13. set arOutput=Headset Earphone (HyperX 7.1 Au
  14. :: Sample Rate              -- The maximum frequency that can be played. 44100 Hz (44.1 kHz) should be good enough for most purposes.
  15. set arSamplingRate=44100
  16. :: Bits per Sample          -- Also known as 'Bit Depth' or 'Sample Format'. If you are not going to be doing any audio editing, 24 bits should suffice.
  17. :: Allowed Values: [ 8 | 16 | 18 | 20 | 22 | 24 | 32 ]
  18. set arBitsPerSample=24
  19. :: Channels                 -- This affects how many audio channels there will be. Usually overridden by Channel Cfg. Examples: Mono = 1, Stereo = 2, 7.1 surround = 8
  20. set arChannels=8
  21. :: Channel Configuration    -- This affects how many audio channels there will be.
  22. set arChanCfg=7.1 surround
  23. :: Buffer Milliseconds      -- How much time the sound card is given to process incoming audio. Lower values will have less delay, but will strain your computer more.
  24. set arBufferMs=100
  25. :: Buffers                  -- How many buffers are alloted to queue audio for playback. 8-15 should be good, but you want overflow and underflow to be as low as possible.
  26. set arBuffers=10
  27. :: Priority                 -- This affects how fast the buffers are filled with new audio to playback. Higher values can freeze your OS if too many things are running.
  28. :: Allowed Values: [ Normal | High | Realtime ] (Others may work, such as AboveNormal etc, but this is what is listed in Audio Repeater.)
  29. set arPriority=High
  30. :: AutoStart                -- Whether Audio Repeater automatically starts repeating audio.
  31. :: Allowed Values: [ true | yes | 1 | y ] (Using values not listed here will have no effect.)
  32. set arAutoStart=true
  33.  
  34. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  35. :: DO NOT EDIT ANYTHING BELOW THESE LINES UNLESS YOU ARE SURE YOU KNOW WHAT YOU ARE DOING. ::
  36. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
  37.  
  38. if %arAutoStart%==1 set arAutoStart=/AutoStart
  39. if /i %arAutoStart%==y set arAutoStart=/AutoStart
  40. if /i %arAutoStart%==true set arAutoStart=/AutoStart
  41. if /i %arAutoStart%==yes set arAutoStart=/AutoStart
  42. if %arAutoStart% neq /AutoStart set arAutoStart=
  43.  
  44. start /min "%arWindowName%" "%arPath%" /WindowName:"%arWindowName%" /Input:"%arInput%" /Output:"%arOutput%" /SamplingRate:%arSamplingRate% /BitsPerSample:%arBitsPerSample% /Channels:%arChannels% /ChanCfg:"%arChanCfg%" /BufferMs:%arBufferMs% /Buffers:%arBuffers% /Priority:%arPriority% %arAutoStart%
Advertisement
Add Comment
Please, Sign In to add comment