Re: [PATCH v2 0/5] MR9368: dsound: Use AUTOCONVERTPCM when initializing the render audio client.
Huw Davies (@huw) commented about dlls/dsound/primary.c:
- w = DSOUND_CopyFormat(&retwfe->Format); - else - w = DSOUND_CopyFormat(&testwfe.Format); - CoTaskMemFree(retwfe); - retwfe = NULL; - } else - w = DSOUND_CopyFormat(&mixwfe->Format); + testwfe = *mixwfe; + + testwfe.SubFormat = KSDATAFORMAT_SUBTYPE_IEEE_FLOAT; + testwfe.Samples.wValidBitsPerSample = testwfe.Format.wBitsPerSample = 32; + testwfe.Format.nBlockAlign = testwfe.Format.nChannels * testwfe.Format.wBitsPerSample / 8; + testwfe.Format.nAvgBytesPerSec = testwfe.Format.nSamplesPerSec * testwfe.Format.nBlockAlign; + + w = DSOUND_CopyFormat(&testwfe.Format); + This hunk is adding a bunch of tabs. I know it gets removed in the next commit, but still.
-- https://gitlab.winehq.org/wine/wine/-/merge_requests/9368#note_121150
participants (1)
-
Huw Davies (@huw)