Jump to content

Switch Default Playback Device with Programable Keys.

ChaoticWolf

Use a headset as well as speakers?

Like to use to your headset for gaming but like to use your 5.1 speaker system to watch movies?

Sick of changing the default device manually?

Well if you have programmable keys you can assign them to switch your device.

Tutorial as followed:

_____________________

1) Download NirCmd from http://www.nirsoft.net/ and place some where nircmdc.exe convenient.

2) Create two text files like below and place them with in the same folder as the exe file:

File 1________________________________

Text file name:

SwitchToSpeakers.ncl

Contents:

setdefaultsounddevice "speakers"

setdefaultsounddevice "speakers" 2

____________________________________

//Note, quotes ARE used in code.

File 2________________________________

Text file name:

SwitchToHeadphones.ncl

Contents:

setdefaultsounddevice "headphones"

setdefaultsounddevice "headphones" 2

____________________________________

You may have to adjust the text inside the quotes to match your system. (manpage setdefaultsounddevice)

3) Then go to the G-key setup and choose shortcut. Here you want to put the following: (remember to adjust the path)

Key that switches to speakers:

X:=PATH/TO/nircmdc.exe script SwitchTo"Your Speaker Name".ncl

//e.g. witchTo"Speaker".ncl

Key that switches to headphones:

X:=PATH/TO/nircmdc.exe script SwitchTo"Your Headset Name".ncl

//e.g. witchTo"Headset".ncl

Enjoy!

"Mentally Unstable Like a Fox!"

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×