Per Microsoft's specifications, it is the applications responsibility to zero the buffer when a driver returns AUDCLNT_BUFFERFLAGS_SILENT.
https://learn.microsoft.com/en-us/windows/win32/api/audioclient/ne-audioclient-_audclnt_bufferflags
I have a hardening PR for WASAPI in preparation which fixes this issue amongst other things.
Per Microsoft's specifications, it is the applications responsibility to zero the buffer when a driver returns AUDCLNT_BUFFERFLAGS_SILENT.
https://learn.microsoft.com/en-us/windows/win32/api/audioclient/ne-audioclient-_audclnt_bufferflags
I have a hardening PR for WASAPI in preparation which fixes this issue amongst other things.