SPDIF/HDMI Sound Keeper v1.2.1 [2021/11/05]

Prevents SPDIF/HDMI digital audio playback devices from sleeping. Uses WASAPI, requires Windows 7+.

To enable autorun, copy soundkeeper.exe into the startup directory (to open it, press Win+R, enter "shell:startup", press Enter). To close the program, just mute the Sound Keeper in the Volume Mixer or kill the soundkeeper.exe process.

Download: soundkeeper.7z (17KB). Source code →

Features

  • Sound Keeper is fully automatic and doesn't require any user interaction.
  • Sound Keeper can keep sound on many sound outputs simultaneously (e.g. SPDIF and HDMI).
  • Sound Keeper detects new sound outputs on the fly (e.g. when you connected a TV via HDMI).

Settings

  • Default behavior can be changed by changing file name of the Sound Keeper executable.
  • Primary audio output is used by default. Add "All" to executable file name to enable Sound Keeper on all outputs.
  • Inaudible stream is used by default. Add "Zero" to executable file name to use stream of digital zeroes (like it was in v1.0.0).

If the default inaudible stream doesn't help, try the new "Sine" stream type. It generates a sine wave, and can be customized. There are two parameters: F (frequency) and A (amplitude). The value goes right after the parameter character. For example, add "SineF10A5" to executable file name to generate 10Hz sine wave with 5% amplitude. Low frequencies (below 20Hz) and high frequencies (above 20000Hz) with low amplitude (up to 10%) are inaudible.

Sound Keeper vs. SPDIF Keep Alive vs. SPDIF-KA

Sound Keeper v1.0 SPDIF Keep Alive v1.2 SPDIF-KA v1.4
Fully automatic: Yes No No
Multiple outputs: Yes No No
GUI: No Yes Yes
Requires .NET: No Yes Yes
Executable size: 17KB 668KB 163KB
CPU usage (on Intel Core i5 4460): 0.004% 0.06% 0.06%
RAM usage (Private Working Set): 1636KB 13704KB 10600KB
  1. #151
    I WANT TO BECOME MONKE

    @VEG

    I fixed it by changing sampling rate from 48kHz to 96kHz

  2. #152
    TOB

    Any Regedit hack to equal this? Thanks

  3. #153
    VEG Author

    There is no built-in functionality like Sound Keeper to activate it from registry. Your audio card driver may have a (hidden) setting to disable this power saving anti-feature which Sound Keeper tries to overcome though.

  4. #154
    Pavel

    Sound Keeper v1.1.0

    I use an asus xonar hdav sound card for an hdmi connection, installed soundkeeper_v1.1.0. this helped the external receiver to work in PCM 5.1 mode as needed, but then I turned off the receiver and turned it on, and it fell asleep as it was before using soundkeeper_v1.1.0. I did repeated reinstalling the driver and restarting soundkeeper_v1.1.0 ,and it didn't work, everything works like I didn't run it at all. That is, but completely stopped working and the sound began to fall asleep as before.

  5. #155
    Navid

    I cannot thank you enough. This program has stopped my AVR from cutting every 3-4 minutes to every 20 minutes (a lot less annoying). Do you think there'll be a way to prevent this altogether?

  6. #156
    VEG Author

    You can try this version with new "sine" mode. Maybe it will help you better. This new mode will be available in the next version.

  7. #157
    Halex

    Still works beautifully in Windows 11. Thank you!

  8. #158
    forestation

    Is there a similar app for Google TV (Android)? I'm encountering this issue while running Kodi on Google TV

  9. #159
    VEG Author

    I'm not aware of such program for Andorid. You can report the issue to the Kodi developers, they could try to resolve it by streaming zeroes when nothing is actually playing.

  10. #160
    VEG Author

    Sound Keeper v1.2.0

    • Sound Keeper doesn't prevent PC from automatic going into sleep mode.
    • New "Sine" stream type which can be useful for analog outputs or too smart digital outputs.
    • When a user starts a new Sound Keeper instance, the previous one is stopped automatically.
    • "Fluctuate" stream type considers sample format of the output (16/24/32-bit integer, and 32-bit float).
    • Command line parameters are supported. Example: "SoundKeeper64.exe sine -f 1000 -a 10".
    • The workaround for the Audio Service memory leak is enabled on affected Windows versions only (8, 8.1, and 10).
  11. #161
    VEG Author

    If there are users of the Windows on ARM who wants to use the Sound Keeper, I could make a native ARM64 binary of the program. But I need to test it before releasing, so you could help me with it. Contact me if you are interested.

  12. #162
    VEG Author

    Sound Keeper v1.2.1

    • Sound Keeper works on Windows 11.
    • The code which allowed PC to sleep automatically had to be disabled on Windows 11 because of a bug in the OS.

    When any program streams any audio (even silence), the system don't go into sleep mode automatically. Sound Keeper tries to use the NtPowerInformation(SystemPowerInformation, ...) function to retrieve time when system is going to sleep to let the OS do it. For some reason, Windows 11 always reports that the system is going to sleep in 0 seconds. Seems like a new bug in the OS. As the result, Sound Keeper thought that the system is going to sleep right now, and disabled itself to let the system sleep. This behavior had to be disabled on Windows 11 until a better solution is found.

  13. #163
    HHH03

    Thank you for this program. My new computer a Lenovo P620 is a good machine and uses the Realtek ALC4050H Codec. Unfortunately, the Realtek driver likes to power down (D2) after 10 seconds and it's taking around 1 sec to power back up to D0. It causes a popping noise in the speakers when it powers down and cuts the audio when it powers up. I made it an auto start program slightly differently than you suggest, I placed the program in System32 folder and created a task scheduler for it to start up when the computer does. The program itself is very small, 20kb is tiny but it does use more system memory than I'd expect... 2.9 MB and it varies in size. Is this a normal range for your program?

  14. #164
    VEG Author

    Seems OK. It depends on your system. Sound Keeper has to load mandatory system libraries related to audio output, and they also take some memory. Any other program that outputs audio would take more memory than Sound Keeper anyway.

  15. #165
    HHH03

    I've been complaining to Lenovo support about this Realtek driver issue and nothing has been done about it so far. The generic Windows USB 2.0 Audio driver performed perfectly, but the Realtek software no longer recognized the rear audio port so if you plugged in headphones in the front jack, the rear speakers continued to play instead of switching off. These AMD motherboards don't have native audio support inside the chipset, most if not all are using USB Audio devices. Normally it's the ALC4050H along with a ALC1220. I been trying to figure a way to modify the Realtek driver and get rid of this D2 power down mode, registry tricks don't work, the driver changes them back immediately. I found a Ubuntu Linux thread describing this exact audio problem for the P620 and the solution was creating a helper to "prevent the device to go in to sleep mode". Seems like Sound Keeper is that helper.

  16. #166
    HHH03

    Is it possible to get the Sound Keeper v1.2.0 version? I want to test it on Windows 11 since there's been quite a few updates lately.

  17. #168
    HHH03

    Does build v1.2.0 work correctly with Windows 10? It definitely doesn’t work with Windows 11.

  18. #169
    VEG Author

    Yeah, it should work on Windows 10.