Commit fd2d6f39 authored by Jörg Höhle's avatar Jörg Höhle Committed by Alexandre Julliard

winecoreaudio: mmdevapi's mixer format is 32bit floating point.

parent f68a36c8
......@@ -1207,10 +1207,8 @@ static HRESULT WINAPI AudioClient_GetMixFormat(IAudioClient *iface,
}
fmt->Format.nSamplesPerSec = rate;
/* CoreAudio doesn't seem to give a device format preference, so just
* choose a common format... */
fmt->Format.wBitsPerSample = 16;
fmt->SubFormat = KSDATAFORMAT_SUBTYPE_PCM;
fmt->Format.wBitsPerSample = 32;
fmt->SubFormat = KSDATAFORMAT_SUBTYPE_IEEE_FLOAT;
fmt->Format.nBlockAlign = (fmt->Format.wBitsPerSample *
fmt->Format.nChannels) / 8;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment