BUG and proposed BUGFIX: Wasapi fails to clear output buffer during audioDeviceStopped()

I’m a little confused that there is no resonance here. Has no one ever stumbled across this bug? Or am I missing something obvious?

I’m using AudioIODevice::stop() to stop playback, so all cleaning up happens in AudioIODeviceCallback::audioDeviceStopped(), but not before (e.g. as in the tutorial I modified above).

Looks like this post might be the same bug: