Alright, so in my code I have a pretty basic music setup:
mainMusic = pygame.mixer.music.load('main_sound.mp3')
pygame.mixer.music.play(-1, 0.0)
then, to stop the music I have:
while True:
if event.type == KEYUP:
if event.key == K_ESCAPE:
pygame.quit()
sys.exit()
if event.key == ord('m'):
if play:
pygame.mixer.music.stop()
else:
pygame.mixer.music.play(-1, 0.0)
play = not play
but for some reason, when i mute the music, it stutters before stopping, if it stops at all. (at school, on their computers it will sometimes stutter until played again, and then stutter starting up, or sometimes, just continue stuttering)
is there anyway to stop this, or is there just something wrong with the music?