You also need to check for the direct sound flag. If that is set and the format is not supported, then return the closest supported format. An open of the primary buffer should not fail regardless of the format. It should just return the closest supported format.
Roderick Colenbrander wrote:
Hi,
This second patch fixes a wrong return value in the case a format isn't supported. Further it moves some traces to a different place to make debugging easier.
Roderick Colenbrander
Name: alsa
alsa Type: text/x-diff Encoding: 7bit