1

So I found the undocumented API to change sound device formats How to change microphone format programmatically

However, it's still unclear how to enumerate the available endpoint formats that can be called with

RESULT IPolicyConfig::SetDeviceFormat(
                PCWSTR,
                WAVEFORMATEX * pEndpointFormat,
                WAVEFORMATEX * pMixFormat
        );

How does the settings app know what list to display in the following ComboBox?

enter image description here

Is there any option other than guessing and checking with IsFormatSupported

1
  • The documentation says to call IsFormatSupported() until you find something suitable. Less than ideal but it is what it is. Commented Oct 19 at 5:20

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.