-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating how to interpret return from IAudioClient.IsFormatSupported …
…- see #284
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
b0c96cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I just ended up debugging this very issue.
Documentation is pretty clear in fact:
https://docs.microsoft.com/en-us/previous-versions//ms678737(v=vs.85)
Basically, S_FALSE means there's something in ppClosestMatch and AUDCLNT_E_UNSUPPORTED_FORMAT means that ppClosestMatch is NULL
b0c96cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, I had been confused by the phrase "Succeeded but the specified format is not supported in exclusive mode." which sounded to me like the specified format was supported in shared mode. My mistake.
b0c96cd
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am very glad for this update. I was many problems with this condition. Thanks!