Can I detect when selected audio device sample rate changes?

Hi Howard, this is what I usually do in these cases, maybe it can help you: Audio stops working after changing samplerate externally - #2 by masshacker