Skip to content

Instantly share code, notes, and snippets.

@RimMirK
Last active November 3, 2022 15:57
Show Gist options
  • Select an option

  • Save RimMirK/7ed1888e6337a9169115a308dad3f4a5 to your computer and use it in GitHub Desktop.

Select an option

Save RimMirK/7ed1888e6337a9169115a308dad3f4a5 to your computer and use it in GitHub Desktop.
e:\codes>sound.py
pygame 2.1.2 (SDL 2.0.18, Python 3.10.8)
Hello from the pygame community. https://www.pygame.org/contribute.html
Note: Illegal Audio-MPEG-Header 0xffe6013f at offset 37692.
Note: Trying to resync...
Note: Skipped 374 bytes in input.
Traceback (most recent call last):
File "E:\codes\sound.py", line 4, in <module>
pygame.mixer.music.play()
pygame.error: mpg123_seek: Invalid RVA mode. (code 12)
import pygame
pygame.mixer.init()
pygame.mixer.music.load("lol_music2.mp3")
pygame.mixer.music.play()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment