I don’t know whether it is the best solution but my experiment works now.
In the Preferences Settings under ‘audio library’ I had 3 audio libraries:
‘sounddevice’, ‘pyo’ and ‘pygame’.
I just deleted the ‘sounddevice’ library and now my experiment works fine : )