Skip to content

About

Switch Dolby Access sound profiles from the Windows tray, by hotkey or automatically (Game while you play, Music otherwise). Native C++, ~300 KB, no Dolby Access window needed.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

DolbySwitch

Latest release Windows 11 C++20 English and French License

English | Français


Switch your Dolby Access sound profile in one click, without opening Dolby Access. Pick Game, Movie, Music, Voice or a custom profile from the notification area or with a keyboard shortcut, or let Auto mode put Game on while you play and Music the rest of the time.

Tired of opening Dolby Access, going to Settings and clicking a profile every time you go from a game to a movie or to music? Dolby offers no shortcut for that. DolbySwitch does it for you, in about 50 ms.

Download for Windows

DolbySwitch's menu next to Dolby Access, which shows the profile DolbySwitch picked

Features ✨

  • 🖱️ One click: click the icon in the notification area and pick a profile
  • ⌨️ Global keyboard shortcuts: Ctrl+Alt+1 to Ctrl+Alt+7 for the profiles, Ctrl+Alt+0 for Auto mode
  • 🎮 Auto mode: Game as soon as a game is in front, Music when you stop playing
  • ⚡ Instant: the sound changes in about 50 ms and Dolby Access stays closed
  • 🔄 Always in sync with Dolby Access: open it afterwards and it shows the profile you picked; if it is already open, it changes in front of you
  • 🎨 An icon that shows the current profile, with an A badge when Auto mode is on
  • 🪶 Featherweight: one native C++ executable of about 300 KB, around 5 MB of memory, nothing to install
  • 🌍 English and French, start with Windows, notifications you can turn off

A closer look 🖼️

Auto mode Manual choice Dolby Access follows
Menu with Auto mode on Menu after picking Game by hand Dolby Access showing the profile picked by DolbySwitch

The icon shows the active profile at a glance:

Game
Game
Movie
Movie
Music
Music
Voice
Voice
Custom 1
Custom 1-3
Game, Auto mode
Auto mode

How to install 📥

  1. Install Dolby Access and set up Dolby Atmos for Headphones (or for built-in speakers) on your audio output.
  2. Download DolbySwitch.exe from the latest release and put it anywhere.
  3. Run it. The first time, DolbySwitch reads your 7 profiles once: Dolby Access opens for about 25 seconds and goes through each profile by itself. Don't touch it until it closes.

There is nothing else to install. The app is not code-signed yet, so Windows SmartScreen may ask you to confirm the first launch (More info → Run anyway).

DolbySwitch then lives in the notification area (look under the ^ arrow and drag the icon onto the taskbar to keep it in view). Left or right click opens the menu. Tick Start with Windows there if you want it every day.

Good to know 💡

How Auto mode decides

Auto mode only uses two profiles: Game while a game is in front, Music the rest of the time. Movie, Voice and the Custom profiles are only picked by hand.

The app in front counts as a game when it is in Xbox Game Bar's list of detected games, installed in a game library folder (Steam, Epic, Riot, Xbox, GOG, Ubisoft, EA, Battle.net, Rockstar...), in your own list, or a fullscreen app that is not a browser, player or known tool. A game you left less than a minute ago and that is still running keeps Game, so a quick Alt+Tab to Discord does not change your sound.

DolbySwitch checks every 2 seconds and switches once the situation has lasted 4 seconds. Picking a profile by hand turns Auto mode off; turn it back on from the menu or with Ctrl+Alt+0.

Keyboard shortcuts
Shortcut Profile
Ctrl+Alt+1 Game
Ctrl+Alt+2 Movie
Ctrl+Alt+3 Music
Ctrl+Alt+4 Voice
Ctrl+Alt+5 / 6 / 7 Custom 1 / 2 / 3
Ctrl+Alt+0 Auto mode on / off

They work in every app. If another app already uses one of them, DolbySwitch tells you when it starts.

Settings file

%LOCALAPPDATA%\DolbySwitch\config.ini is created on the first launch. Restart DolbySwitch after editing it.

[General]
AutoMode=1
Notifications=1
Language=auto        ; auto (Windows language), en or fr
PollMs=2000          ; how often Auto mode checks
StableMs=4000        ; how long a game (or its absence) must last before switching

[Apps]               ; comma-separated .exe names
Games=mygame.exe              ; always treated as a game
NotGames=someFullscreenTool.exe ; never treated as a game
New headset or changed equalizer

DolbySwitch replays what Dolby Access wrote for each audio output during the first launch. When you plug in an output it has never seen, the first switch goes through Dolby Access and DolbySwitch offers to Recalibrate. Recalibrate too after changing the equalizer of a Custom profile in Dolby Access.

Command line
.\DolbySwitch.exe --detect 15     # show what Auto mode sees, once per second
[ 1] Game         fragpunk.exe             foreground=fragpunk.exe (game) (fullscreen)
[ 2] Music                                 foreground=discord.exe

Handy to tune the [Apps] lists, or to attach to a bug report.

How it works

Dolby Access has no command line, link or API to change the profile, so this project looked at what it does when you click one.

  1. The sound. Dolby Access (its CapxComponent.dll) uses the Windows 11 audio effects settings API: it activates IAudioSystemEffectsPropertyStore on each audio output with the Dolby audio processing object {45da5c30-2837-4ac4-b1e2-50acc3865974}, writes three values in its user store and commits them, which notifies the audio engine:

    • {1b4dab55-b1fb-4d8c-8317-f2d4a96efbb8},2 and ,5: the processing parameters (binary, specific to each output),
    • {e36464a1-2f4b-440b-a776-8b32b26a7f01},1: the profile number (1 = Game ... 7 = Custom 3).

    The parameters come from Dolby's own code, so DolbySwitch does not compute them: the first launch lets Dolby Access apply each profile once and records the three values for every output. Switching then means writing them back through the same API.

  2. What Dolby Access shows. At startup Dolby Access restores the profile saved in its settings (settings.dat, value LocalState\Common\DapProfile). DolbySwitch updates it with RegLoadAppKey, so the app opens on the right profile, and selects the profile in its window through UI Automation when it is already open.

Nothing is patched or injected, and no administrator rights are needed.

For developers

Requires Visual Studio 2022 (Build Tools are enough) with the Desktop development with C++ workload.

.\build.ps1                  # Release build -> build\Release\DolbySwitch.exe
.\build.ps1 -Config Debug
File Role
src/dolby_store.* Audio effects property store, calibration file
src/dolby_app.* Dolby Access settings, UI Automation, calibration run
src/auto_detect.* Game detection for Auto mode
src/main.cpp Notification area icon, menu, shortcuts, background threads
src/tray_icon.* Draws the icon of each profile
src/config.*, src/strings.h config.ini, English and French text

Pushing a v* tag builds the executable on GitHub Actions and publishes the release.

Frequently asked questions ❓

Can I change the Dolby Access profile without opening the app? Not with Dolby Access alone: you have to open it, go to Settings and click a profile. DolbySwitch adds a notification area menu, keyboard shortcuts and an Auto mode on top of it, and changes the sound without opening it.

Does it replace Dolby Access? No. Dolby Access and its Dolby Atmos licence are still needed: DolbySwitch only drives the profiles you already have.

Does it work with Dolby Atmos for built-in speakers or Dolby Audio laptops? It works with the Dolby Atmos processing installed by Dolby Access (headphones and built-in speakers). Laptops whose Dolby comes with the audio driver (Dolby Audio / DAX) use another system and are not supported yet.

Why Windows 11 only? The audio effects settings API it relies on appeared in Windows 11 22H2.

Will it slow my games down? No. It looks at the app in front every 2 seconds, which costs next to nothing, and uses around 5 MB of memory.

Is it free? Yes, and open source under the MIT License.

Contributing 🤝

Bug reports, translations and ideas are very welcome: open an issue. If a game is not detected, the output of DolbySwitch.exe --detect helps a lot.

Disclaimer ⚠️

DolbySwitch is an independent project. It is not affiliated with, endorsed by or sponsored by Dolby Laboratories. Dolby, Dolby Atmos and Dolby Access are trademarks of Dolby Laboratories. No Dolby code or assets are included. Use at your own risk.

License 📜

MIT

About

Switch Dolby Access sound profiles from the Windows tray, by hotkey or automatically (Game while you play, Music otherwise). Native C++, ~300 KB, no Dolby Access window needed.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages