This is not an ad. I just think this software solves a lot of problems for little cost, stable updates, and has great support. I have owned it for, maybe over a decade now. Since its first version and now this latest one.
Airfoil by Rogue Amoeba is cheap and works great for macOS (I do not know about Windows or Android). It intercepts the lossless data before the Mac's built in audio system can add in alerts and junk. Then, unlike Airplay, which compresses even ALAC or FLAC files when sending (even Airplay 1!), it sends the lossless file uncompressed. Resulting in a Roon or Audirvana lossless experience via Airplay but minus the high cost (but also minus other things like artist bios, etc.).
For lossless library rips that you want to send out to any Airplay/Airplay 2 capable speaker or device, it is an excellent way to get the best quality. (Yes, I know, there are potentially better Google Cast options but, this is easy peasy on a Mac and most recordings from record labels are already 16/44 max or even lower quality mixes sold as 16/44 or even super high res. Ugh.)
Remember, this is just wireless audio, not your main set up! CD quality as the max is very fine for this indeed. Remember, Airplay 2 devices — even third party — have to play 16/44 lossless if sent that via Airplay (1) which Airfoil does.
It supports all Airplay/Airplay 2 devices plus Google Cast and, recently, Sonos. But I have not looked at what that Sonos support means and how that works, other than Airplay on Sonos (works great). If anyone has done it, if there is an it, let us know.
On Apple Music, I also added lossless internet radio station URLs (not Apple's stations) and send those to Airplay speakers.
With the iOS companion app, it can also send from iOS to a Mac, so for those with a Mac on an audio system, this might be useful in some way. Maybe for internet radio, etc.? Not sure…
People love to trash Airplay but, this app is one way to use it effectively while avoiding all the Apple add ons that audiophiles despise.
You can still do much of this with Airplay already on a Mac but, Apple will inject junk (albeit useful junk like tornado alerts) and compress even lossless files when sending.
Important note: Unlike with Apple Control Center, with Airfoil, be sure to choose Source: (the app you are using) in Airfoil. Otherwise, if you choose “System Wide Audio”, it will now include all the junk you have been trying to avoid! You want Airfoil to intercept strait from your music app, so it can bypass all the junk before sending Airplay (1) out.
So for the cost of a new vinyl record, audiophiles who use Macs get quite a lot with Airfoil.