Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
2

Sounds not working in pygame

mowen88
mowen88

Hi all. I have coded a platformer from an online tutorial and I cannot for the lofe of me get sounds to work. They are coded properly, there was no resolution that worked for me from asking on stackoverflow and the code runs fine, just no sound whether I use music or sound with pygame mixer. The sound works when I use python and import audio function on replit, just nothing on pygame. Thanks for your helps in advance!

1 year ago

Voters

Comments

TopNew
1
jordaneasthere
jordaneasthere

sounda.play () returns the object needed to play the sound. You can also use it to find out if the sound is still sounding:

channela = sounda.play ()
while channela.get_busy (

https://besthybridtablesaw.com/best-table-saw-for-beginners/

1 year ago
1
mowen88
mowen88

Thanks Darrell. I don't get what you mean by still sounding? It just doesn't make a noise and shows no errors, syntax looks correct in code. I have used .play() etc.

1 year ago
1
DarrellFranklin
DarrellFranklin

sounda.play () returns the object needed to play the sound. You can also use it to find out if the sound is still sounding:

channela = sounda.play ()
while channela.get_busy ():
pygame.time.delay (100)

https://writemyessaysonline.com

1 year ago
1
Johnmash2
Johnmash2

@DarrellFranklin
did you get solution https://dottrusty.com/

9 months ago
Load more