0

I am trying to play a mp3 file in pygame it start to play but then stops after about 1 second here is code :

 import pygame
    pygame.mixer.init()
    pygame.mixer.set_num_channels(1)
    pygame.mixer.music.load('play.mp3','mp3')
    pygame.mixer.music.play(1,1,0)
    print(pygame.mixer.music.get_busy())
    #yes it is in the same dir

I did what I thought the docs meant I tried to change some of the play prams but it didn't work

Bas H
  • 2,114
  • 10
  • 14
  • 23
pi_py_pie
  • 1
  • 1

0 Answers0