https://bugs.winehq.org/show_bug.cgi?id=46450
--- Comment #3 from Gabriel Ivăncescu gabrielopcode@gmail.com --- Created attachment 64361 --> https://bugs.winehq.org/attachment.cgi?id=64361 Adjust the buffer volume before sending it to PulseAudio.
How about something like this? In this case, we process the buffer and supported sample formats ourselves and adjust the volume.
Tested it on 3 different apps that relied on it and it seems to work fine, even the 24-bit encoding which is more complicated.
If this is fine, I will add ALAW/ULAW handling as well (from PA sources so it's the same encoding) which should cover all the supported formats.