Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Switch audio outputs in Windows 10

If you have a question or need help, this is the place to be.
Post Reply
Kwao
Posts: 2
Joined: Sat Sep 12, 2015 1:28 am

Switch audio outputs in Windows 10

Post by Kwao »

Hi everyone,

I'm new to Eventghost but have it running a few things successfully for about a week now. I'm wondering if anyone can help me with switching audio ouputs on Windows 10. Basically I have a gaming PC that I also watch movies on. When I'm gaming I use headphones and when I'm watching movies I do it through Plex.

What I'd like to happen is that when I open Plex it will switch from using the headphones on my PC to the HDMI audio output in Windows and then when I exit Plex it switches it back. Is this possible ? Any help appreciated!

Thanks
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Switch audio outputs in Windows 10

Post by jonib »

There is a plugin AudioEndpoint that might work in Windows 10 (Haven't tried the plugin).
Kwao wrote:Basically I have a gaming PC that I also watch movies on. When I'm gaming I use headphones and when I'm watching movies I do it through Plex.
Can't you set the audio device in Plexs settings? I use my PC speakers normally but when I start Kodi, it uses my TVs speakers, as that's what I setup in Kodi.
I'm wondering if anyone can help me with switching audio ouputs on Windows 10.
When I want to play games on my TV and need to change speakers, I use a program NirCMD to change the default audio device in Windows 7, don't know if it still works in Windows 10.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Kwao
Posts: 2
Joined: Sat Sep 12, 2015 1:28 am

Re: Switch audio outputs in Windows 10

Post by Kwao »

Thanks for the help and links I'll check out both of those programs :)
r1kkie
Posts: 16
Joined: Wed Aug 26, 2015 7:19 pm

Re: Switch audio outputs in Windows 10

Post by r1kkie »

jonib wrote: When I want to play games on my TV and need to change speakers, I use a program NirCMD to change the default audio device in Windows 7, don't know if it still works in Windows 10.

jonib
I can confirm that this works, I use it on windows 10 to switch between audio output from intarnal speakers on my laptop and HDMI output.
Here us a guide to how to creat a batch file that will switch default audio and microphone device, then u can simply run the batch file from EG to automate it.
http://www.microsoftnow.com/2013/05/cre ... ndows.html
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Switch audio outputs in Windows 10

Post by Sem;colon »

The AudioEndpoint plugin works as well and is more convenient than using NirCmd with EventGhost
If you like my work, Image me a drink :wink:
Atramhasis
Posts: 13
Joined: Sun Feb 18, 2007 8:50 am

Re: Switch audio outputs in Windows 10

Post by Atramhasis »

In the Anniversary Update (Windows 10 1607) there is the new switch for audio output devices on the speaker symbol in the notification area. How could we get access to it with EventGhost? Has someone knowledge and time to check this?
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Switch audio outputs in Windows 10

Post by jonib »

Atramhasis wrote:In the Anniversary Update (Windows 10 1607) there is the new switch for audio output devices on the speaker symbol in the notification area. How could we get access to it with EventGhost? Has someone knowledge and time to check this?
What access do you want? It seems to be just a faster way to manually change the audio output.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
User avatar
kgschlosser
Site Admin
Posts: 5190
Joined: Fri Jun 05, 2015 5:43 am
Location: Rocky Mountains, Colorado USA

Re: Switch audio outputs in Windows 10

Post by kgschlosser »

I do not use Windows 10 but upon doing a little searching I found this utility

https://github.com/Belphemur/SoundSwitch/releases

And this will allow you to select audio devices and change them with a hotkey that you specify. And you would use the keyboard emulator in EG to press those keys to change the audio source.

Now you can also use NirCMD to do the same from a command line as well. Little more involved but doesn't have an app always running to monitor for the hotkey presses.

I am not sure if audio endpoint works with Windows 10 as it is still being currently supported I would imagine it does. But this is another solution if anyone wanted to know. This method does not change audio devices upon plugging and unplugging of something like headphones. I believe audio endpoint does. But if you are looking for a way to do it programmatically based on something like what program is running. This will accomplish that with something like the process watcher plugin to tell you when a specific program starts or stops.
If you like the work I have been doing then feel free to Image
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Switch audio outputs in Windows 10

Post by Sem;colon »

This method does not change audio devices upon plugging and unplugging of something like headphones. I believe audio endpoint does.
No, I guess you misunderstood the explanation of the plugin. The switching of audio endpoints and the event triggering when an audio endpoint changes are two seperate features - not connected. Try the plugin and you will see.
If you like my work, Image me a drink :wink:
Atramhasis
Posts: 13
Joined: Sun Feb 18, 2007 8:50 am

Re: Switch audio outputs in Windows 10

Post by Atramhasis »

jonib wrote:
Atramhasis wrote:In the Anniversary Update (Windows 10 1607) there is the new switch for audio output devices on the speaker symbol in the notification area. How could we get access to it with EventGhost? Has someone knowledge and time to check this?
What access do you want? It seems to be just a faster way to manually change the audio output.

jonib
The best way would be to add this Option in "Add Action > System > Sound Card", something like "Change Output". Other way would be a plugin. Both solutions have to Access the Windows API somehow, if there is one for this functionality.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Switch audio outputs in Windows 10

Post by jonib »

Atramhasis wrote:The best way would be to add this Option in "Add Action > System > Sound Card", something like "Change Output". Other way would be a plugin. Both solutions have to Access the Windows API somehow, if there is one for this functionality.
Is the AudioEndpoint plugin not working in Windows 10? As it seems exactly what you are describing.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Sem;colon
Plugin Developer
Posts: 625
Joined: Sat Feb 18, 2012 10:51 am
Location: Germany

Re: Switch audio outputs in Windows 10

Post by Sem;colon »

... It is working with Windows 10, I don't know why he doesn't like it
If you like my work, Image me a drink :wink:
Atramhasis
Posts: 13
Joined: Sun Feb 18, 2007 8:50 am

Re: Switch audio outputs in Windows 10

Post by Atramhasis »

Sorry, my fault, it works! Thanks.
Post Reply