How can I change the volume range of an audio endpoint programatically?
There is a Windows API for getting it IAudioEndpointVolume::GetVolumeRange
(https://learn.microsoft.com/en-us/windows/win32/api/endpointvolume/nf-endpointvolume-iaudioendpointvolume-getvolumerange), but not for setting it.
Registry tweaking would be OK for me. The properties reside at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio
, but I can't figure out where and how the volume range is stored.
Background: some drivers report wrong values that I want to correct. C++, Java or Python solutions are ok for me.