Pygame, sounds don't play

Posted by terabytest on Stack Overflow See other posts from Stack Overflow or by terabytest
Published on 2010-05-29T23:12:58Z Indexed on 2010/05/29 23:22 UTC
Read the original article Hit count: 257

Filed under:
|
|

I'm trying to play sound files (.wav) with pygame but when I start it I never hear anything. This is the code:

import pygame

pygame.init()
pygame.mixer.init()
sounda= pygame.mixer.Sound("desert_rustle.wav")

sounda.play()

I also tried using channels but the result is the same

© Stack Overflow or respective owner

Related posts about python

Related posts about sound