title: Pygame Mixer music (multiple music tracks)
body: <p>I have a quite simple question but surprisingly did not find a duplicate.</p>
  <p>I have 2 music tracks for my game and want to switch fom the first music to something else before it runs out naturally.</p>
  <pre><code>mixer.music.load('music.mp3')
  mixer.music.queue(&quot;music_phase2.mp3&quot;)
  mixer.music.play(1, 0.0, 3000)
  </code></pre>
  <p>Normally i can use music.queue to go to the next music track. But i want the first music to stop after a specific event (like a timer or counter) and immediately start the next track.</p>
  <p>I thought of something like this but it didnt work.
  (I need to mention that in my program i want to load the music within a while loop so maybe that is causing problems.)
  This part of the code handles the music. The first music stops as it should afte the counterr reaches 10.
  But the second music doesnt start to play (just silence).</p>
  <pre><code>from pygame import mixer
  pygame.mixer.init()
  
  running = True
  
  mixer.music.load('music.mp3')
  mixer.music.play(1, 0.0, 3000)
  
  # main loop
  while running:
      if logic.counter &gt; 10:
          mixer.music.stop()
          mixer.music.unload()
          mixer.music.load('music_phase2.mp3')
          mixer.music.play(1, 0.0, 3000)
  
  
  #code doesnt end here but the rest shouldnt influence the music
  </code></pre>