[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] [Pygame] Sound not playing
- To: pygame-users@xxxxxxxx
- Subject: [pygame] [Pygame] Sound not playing
- From: Kris Schnee <kschnee@xxxxxxxxxx>
- Date: Fri, 04 Feb 2005 00:41:27 -0500
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Fri, 04 Feb 2005 00:42:18 -0500
- In-reply-to: <200501311406.18970.richardjones@optushome.com.au>
- References: <41FD9B1F.6020906@xepher.net> <200501311406.18970.richardjones@optushome.com.au>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
- User-agent: Mozilla Thunderbird 1.0 (Windows/20041206)
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