I have shairport-sync running on Raspberry PI connected to DAC and large speakers. Apple Music app works flawlessly in this setup, even remembers last selected AirPlay destination.
Longplay shows Raspberry PI in the list of AirPlay destination, so it seems to be aware of its existence, but when I select it, it still plays locally on Mac.