DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: SOLVED: I would love a hotkey or desktop icon to disable/enable my default audio device  (Read 13,693 times)

HankFriedman

  • A computer nerd whose also a psychic & astrologer
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 147
Hi! I have a DAC connected to my computer that sometimes doesn't wake up after my PC awakens after sleep.

If I go to Control Panel --> Sound and disable and re-enable it, it works again.

I don't want to use AutoHotkey, but if anyone reading this could create a tiny program that enables me to disable and then enable my default sound playback device, that would be really, really great.

Thanks!

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
NirSoft's SoundVolumeView seems to do what you want.

Quote
You can switch between disabled and enabled state by using the /DisableEnable command, for example:
SoundVolumeView.exe /DisableEnable "Realtek High Definition Audio\Device\Speakers\Render"

If working then you can simply make a shortcut with such parameters and run it twice to disable and re-enable the DAC.

HankFriedman

  • A computer nerd whose also a psychic & astrologer
  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 147
Nod5:

You did it!

It works like a charm!

Thank you so much.

I am really grateful.

Nod5

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 1,175
    • Coding Snacks
    • Participated in NANY Challenge Three Times
    • Plugin Coding Medal
Happy to help  :)

Additional note to myself: it seems also possible to disable/reenable devices from Powershell https://stackoverflow.com/a/47262639

skwire

  • I eat Coding Snacks for breakfast...
  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 5,297
    • Participated in NANY Challenge Seventeen Times
    • Coding Snacks
    • Superboy Coder
    • Cody Award
    • Volunteers/Staff
    • Gathering Badge
Thanks, Nod5.  I'll mark this thread as solved and move it.

Original address: https://www.donationcoder.com/forum/index.php?topic=50025.0