Answer the question
In order to leave comments, you need to log in
How to get mp3 track length in seconds via pygame.mixer?
How to get mp3 track length in seconds via pygame.mixer?
Answer the question
In order to leave comments, you need to log in
No way.
apart from this crutch:
from pygame import mixer
mixer.init()
mixer.music.load("file.mp3")
mixer.music.play()
pos = 0
while mixer.music.get_pos() > -1:
pos = mixer.music.get_pos()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question