I am making a space shooter game but i ran into an issue.
Every layout in my game has its own music and i want when i leave the layout the music stops and when i come back the music starts playing again.
example: Title Screen has its own music, stage selection has its own music and every individual stage has its own music.
please, how do i implement this in my game?