Win32: Use WAVEFORMATEX for multi-channel audio output on Windows.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/359>
This commit is contained in:
Edward Lee 2020-08-29 23:08:09 -04:00
parent e12ba8eaee
commit 169f8c5f2c
2 changed files with 91 additions and 26 deletions

View file

@ -296,8 +296,7 @@ pa_channel_map* pa_channel_map_init_auto(pa_channel_map *m, unsigned channels, p
case PA_CHANNEL_MAP_WAVEEX:
/* Following http://www.microsoft.com/whdc/device/audio/multichaud.mspx#EKLAC */
/* following: https://docs.microsoft.com/en-us/previous-versions/windows/hardware/design/dn653308(v=vs.85) */
switch (channels) {
case 1:
m->map[0] = PA_CHANNEL_POSITION_MONO;