http://bugs.winehq.org/show_bug.cgi?id=32297
Bug #: 32297 Summary: dwChannelMask, nAvgBytesPerSec and nBlockAlign handled incorrectly by mmdevapi drivers in IsFormatSupported. Product: Wine Version: unspecified Platform: x86 OS/Version: Linux Status: NEW Severity: normal Priority: P2 Component: mmdevapi AssignedTo: wine-bugs@winehq.org ReportedBy: m.b.lankhorst@gmail.com Classification: Unclassified
Created attachment 42628 --> http://bugs.winehq.org/attachment.cgi?id=42628 mmdevapi render test patch, passes on a win7 machine
Each driver currently handles IsFormatSupported in an inconsistent manner, so I did some tests against win7 to see what happens.
Attached testcase is the result, and currently fails on all drivers.
nAvgBytesPerSec and nAvgBytesPerSec seem to be ignored for WAVE_FORMAT_PCM, as I sort of expected, and gets an E_INVALIDARG for WAVE_FORMAT_EXTENSIBLE.
dwChannelMask seems to be ignored for shared mode, and strictly validated on exclusive mode.