Apple Music songs are encoded as M4P file format, which is DRM-protected, and the audio encoder of Apple Music is AAC and ALAC (for lossless quality).