[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] [Pygame] Sound not playing



Now that I'm testing sound, rather than music, nothing's happening.

def PlaySound(sound):
    if type(sound) is str: ## Have to load it first.
        x = pygame.mixer.Sound(sound)
    else:
        x = sound
    x.play()

"PlaySound("foo.wav")" doesn't produce any sound I can hear even after calling pygame.mixer.init() and cranking up the volume. "x.play" returns a Channel, suggesting that it thinks it's playing. Ideas?

Kris