Commit c6bb4e2
win32: Use AUTOCONVERTPCM when initializing the audio client.
Right now, on Wine, IsFormatSupported() advertises every
(extensible) format as supported, and correspondingly Initialize()
accepts every (extensible) format. However that behavior is not
what happen on Windows, where both IsFormatSupported() and
Initialize() rejects format the differ from the current mmdevapi
mix format for anything other than the sample format.
This might be rectified at some point in Wine. To maintain the
current behavior in FAudio, we stop querying with
IsFormatSupported() and pass flag AUTOCONVERTPCM to Initialize().1 parent 730ae9e commit c6bb4e2
1 file changed
+1
-17
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | 355 | | |
357 | 356 | | |
358 | 357 | | |
| |||
419 | 418 | | |
420 | 419 | | |
421 | 420 | | |
422 | | - | |
423 | | - | |
424 | | - | |
425 | | - | |
426 | | - | |
427 | | - | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
436 | | - | |
437 | 421 | | |
438 | 422 | | |
439 | 423 | | |
440 | | - | |
| 424 | + | |
441 | 425 | | |
442 | 426 | | |
443 | 427 | | |
| |||
0 commit comments