wanhuz / dropout

Jack-of-all trade script to stream game using Steam Big Picture while using PC at the same time.
GNU General Public License v3.0
0 stars 0 forks source link

Game audio settings does not revert to default when the game is closed #26

Open wanhuz opened 2 years ago

wanhuz commented 2 years ago

Since SoundVolumeView does not provide ways to revert audio output back to default, I'll have to implements it manually by changing registry setting.

Computer\HKEY_USERS\S-1-5-21-2437453287-1511510858-1149427476-1001\SOFTWARE\Microsoft\Multimedia\Audio\DefaultEndpoint\ecf406e4_0

Here are the key to change audio output device for application that is available on the current PC. Simply removing the key would reset it to default, I think.

wanhuz commented 2 years ago

So just removing the application key does not work, audio devices also need to be updated

The audio device key can be found at Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render\