View Single Post
Old 28th January 2015, 14:06   #33
pbelkner
Senior Member
 
Join Date: Jun 2010
Posts: 405
Quote:
Originally Posted by A11ectis View Post
Got this error when trying to play a certain album of MP3s:



Any idea what's up? No noticeable issues when YASAPI is disabled.
When you get this error YASAPI is indeed enabled (no chance you get this when YASAPI is disabled).

You get this under the same circumstances you get AUDCLNT_E_UNSUPPORTED_FORMAT. Both result from a call to the IsFormatSupported() method of the IAudioClient interface:
  • when you get S_FALSE you are most likely in shared mode, and
  • when you get AUDCLNT_E_UNSUPPORTED_FORMAT you are most likely in exclusive mode.
You should get rid of the S_FALSE in shared mode when the format under Control Panel -> Sound (in Windows) is configured to mach the format of your audio (especially the sample frequency).
pbelkner is offline   Reply With Quote