Pygame is playing .wav completely fine but when it comes to .mp3 it gives this error " pygame.error: music_drmp3: corrupt mp3 file (bad stream). ".
I tried shifting from .music to .sound but it made matters worse. This is the simple version of the code which involves the problem snippet
from pygame import mixer
# Starting the mixer
mixer.init()
# Loading the song
mixer.music.load("A Lowly Shoe Salesman.mp3")
# Setting the volume
mixer.music.set_volume(0.7)
# Start playing the song
mixer.music.play()
It gives this error
pygame 2.5.1 (SDL 2.28.2, Python 3.11.3)
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "f:\CODE\python\SpotifyDownloader\music.py", line 7, in <module>
mixer.music.load("A Lowly Shoe Salesman.mp3")
pygame.error: music_drmp3: corrupt mp3 file (bad stream).