I was wrong.
Just checked with my friends in US who was one of the early buyers of A6. Initially the Apple Music was not available as APK and he had cast it from his phone. After an update, the Apple Music has been added though as I think it does not have an inbuilt Google Playstore.
In that case it is absolutely bitferfect with no casting.
It is not bit-perfect. As of now only the IOS devices do it right. Apple music on android and macbook, macbook pro, macbook mini and apple TV play at a fixed sample rate.
- Apple TV - 48kHz
- Macbook, macbook pro, macbook mini - Whatever sampling rate is set in the audio midi setup app. One can however install a 3rd party lossless switchter app to automatically change the sampling rate (like what IOS devices iphone and ipads do).
- Apple music on android. Now this gets every weird. If you play a song that is on dolby atmos, Apple Music uses a fixed sampling rate of 48 kHz. For 192kHz and above, it resamples audio to 384 kHz. For 44.1 kHz CD quality music, the music is resampled to 48 kHz.
1a - The media shows dolby atmos in the media being played
2a. DAC shows that apple music is playing at 48kHz sampling rate when playing atmos content
Figure 2a. Playing Hi-Res Music with sampling rate 192kHz. Apple music shows that it has picked ALAC 24bit @192kHz sampling rate from the apple server
.
Figure 2b: The DAC shows that apple music is resampling the audio @384 kHz before sending it to the DAC.
Now let us pick a song which Apple has a CD quality encoding. It resamples 44.1kHz songs to 48kHz.
Figure 3a: Playing CD quality music
Figure 3b: Apple music resamples 44.1 kHz CD quality music to 48 kHz
So it is never bit perfect on android. Tested on Android 13 with the latest official apple music app. So far the only app that does it perfectly on android is the USB Audio Pro (paid app). Apple Music is definitely not using the android audio stack, but it isn't doing it right.