Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modify audio output device system/master volume on Windows #2005

Open
zebranine opened this issue Mar 11, 2024 · 3 comments
Open

Modify audio output device system/master volume on Windows #2005

zebranine opened this issue Mar 11, 2024 · 3 comments
Labels
feature waiting Waiting for more information from reporter

Comments

@zebranine
Copy link

Feature request

First post here so congratulations and thanks for this awesome offering.

It seems that volume commands from MPD clients (MALP, MPDCtrl) influence only the MPD output volume and not the output device's system/master volume level on the Windows host machine. If there is a way to do this I have not found it.

Since we are using the MPD server machine as an HTPC, the device volume may be left at an arbitrarily low level by the last user and this then caps the output from MPD. Only a manual adjustment of the device volume via the usual Windows controls resolves the issue.

I have various workarounds but direct setting of the Windows device volume by MPD would be ideal.

Thanks for your time.

@MaxKellermann
Copy link
Member

I don't understand what you are doing, partly because you did not say anything about your setup, and partly because I have never used Windows, and I don't know what "system/master volume" is.

@MaxKellermann MaxKellermann added feature waiting Waiting for more information from reporter labels Mar 11, 2024
@zebranine
Copy link
Author

I have a Windows 11 PC hosting MPD as a service, various clients (Windows, Android).

Client volume changes seem to modify only the MPD application volume, rather than the host audio device volume at the operating system level.

This means that if the Windows audio device used by MPD is set at 25% volume (in the Windows mixer), MPD can only reach maximum 25% of potential system volume even when it is set internally to 100% volume.

The OS mixer volume overrides the MPD application volume. This could be overcome if MPD set the Windows mixer level for the audio device directly.

Screenshot of client displaying MPD vol vs OS audio device vol:

3

@zebranine
Copy link
Author

zebranine commented Mar 14, 2024

Found a partial solution.

MPD will control Windows Mixer master volume if mpd.conf audio_output settings specify the following:

type "wasapi"
exclusive "yes"

This, however, means no other programs can use the audio device, so not ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature waiting Waiting for more information from reporter
Projects
None yet
Development

No branches or pull requests

2 participants