Music should continue playing when you change layouts. You probably have an event "Play music" somewhere that is triggered when you go to another layout, that's why it gets restarted.
You can do this:
Audio tag "music" is NOT playing -> Audio play Music with tag "music"
This way even if this event is triggered multiple times, it will not restart the music that is already playing.