According to my information, via Airplay version 1 any audio format is converted to ALAC 16 / 44.1 by the sending device before being sent to the receiving device.
Also based on my information, the Apple TV 4K has a fixed audio output at 16/48.
Apple Music sends in ALAC format up to 24/48 if...