dsound: Reject WAVEFORMATEX formats with more than two channels.
commit7c7b2e8e7e8c0be1a756e6d7c705b68017459e26
authorZhiyi Zhang <zzhang@codeweavers.com>
Tue, 20 Feb 2024 03:04:13 +0000 (20 11:04 +0800)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 20 Feb 2024 09:44:05 +0000 (20 10:44 +0100)
treeb6b5fb0bd8d4b57ef1309eb62543a47cfe456bc9
parentb3ec5bc7ea3138d7fe8b6a1a5fa441ae305ab413
dsound: Reject WAVEFORMATEX formats with more than two channels.

Formats with more than two channels require WAVEFORMATEXTENSIBLE according to tests.

Fix Viking: Battle for Asgard (211160) audio cracking in its intro video.
dlls/dsound/dsound.c
dlls/dsound/primary.c
dlls/dsound/tests/dsound.c