AudioIODevice::stop() leads to repeating rattling

I am using Juce 7.07 basic set on Windows 10 with a device with Windows Audio API.

When I call AudioIODevice::stop() during normal playback (from normal UI thread) , the device starts rattling as if the same last buffer is being played back continuously. audioDeviceIOCallbackWithContext() is called no more by Juce after stop(). The sound is only stopped if the device is closed.

It seems like I am doing something very stupid or there is an obvious bug in Juce.

Do you have any ideas what could be happening here?

Thanks,
Stepan.