0

I'm having trouble understanding the documentation for the IAudioClient::Initialize() function.

It's about the different return values E_INVALIDARG and AUDCLNT_E_UNSUPPORTED_FORMAT.

The E_INVALIDARG description says:

Parameter pFormat points to an invalid format description.

However, in the description for AUDCLNT_E_UNSUPPORTED_FORMAT:

The audio engine (shared mode) or audio endpoint device (exclusive mode) does not support the specified format.

What does it mean in E_INVALIDARG that the description format is "invalid"? I guess it's not that it doesn't fit the device, since that's already handled by AUDCLNT_E_UNSUPPORTED_FORMAT?

And, it's also not that it is pFormat == NULL, since that's already handled by E_POINTER.

So, what specific cases is pFormat incorrectness covered by E_INVALIDARG?

4

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.