Python Forum
Trying to play sound. Getting fatal error.
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Trying to play sound. Getting fatal error.
#2
Mixer pre init goes before pygame.init()

pygame.mixer.pre_init(frequency=44100)
pygame.init()
And you run pygame.init() only ever once
Remove lines 2 3 5 and 8. Move line 6 to line 3

If you still have an issue after that try a completely different sound file to test. Dont convert anything.
Recommended Tutorials:
Reply


Messages In This Thread
RE: Trying to play sound. Getting fatal error. - by metulburr - Oct-24-2020, 11:01 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  I can not play mp3 in pygame vinicius 4 5,191 Feb-19-2018, 11:01 PM
Last Post: SeabassG33

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020