After a correct enabling of the iMac Airplay audio device (confirmed by airplay code) each time I try to play on this device iMac is displaying a new pass code and playback doesn’t start.
I’m sorry you’re having issues. Let’s take a look. I’m still a novice at modern Mac OS after a pause in my exposure to it but I’m getting back into the swing of things. Roon will get you familiar with a lot of things quickly!
Can you take a look at your sharing settings for AirPlay for the Mac in question and let me know what you see? Here’s my setup: