I'm pretty sure it works as it does when you're playing music/videos normally when using maps: Your music will play fine, the music will just go quiet while Siri is telling you directions. I don't have an Apple Music subscription myself, but I don't see any reason that it would work any differently for that service.