[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] can someone please test this short script on python3.2/python3.1 ?
- To: pygame-users@xxxxxxxx
- Subject: [pygame] can someone please test this short script on python3.2/python3.1 ?
- From: René Dudfield <renesd@xxxxxxxxx>
- Date: Tue, 6 Sep 2011 15:56:58 +0200
- Delivered-to: archiver@xxxxxxxx
- Delivered-to: pygame-users-outgoing@xxxxxxxx
- Delivered-to: pygame-users@xxxxxxxx
- Delivery-date: Tue, 06 Sep 2011 09:57:05 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=pg2sg8QgMfNTk/BDEPXdzamjnFLOxHJVrOipTVI76MA=; b=HkU2MDXeAi0CbX7tBoeKu/mArPR9qapYDiwhlO0pGc62kQwglGce+XT3uCyWG6dhyX 5qk1MwSDVL1pohVonnGi7VVydYRLy5VmVvj/uJfvpdsOmjQwZCyL++LmuyzZpnFlKfh9 e2DSo2WmXCxVQsu1C6Po5/RWkC6QVVMqjxEjE=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hello,
we have a bug report of a failure on python 3.1 with the pygame.mixer.Channel object.
https://bitbucket.org/pygame/pygame/issue/38/pygame-191-mixer-bug
Can someone with python 3.1 or python3.2 confirm that this works or fails for them? You should hear a sound, and the the program finishes cleanly after 3 seconds.
import pygame, pygame.examples, time, os
pygame.init()
main_dir = os.path.split(os.path.abspath(pygame.examples.__file__))[0]
data_dir = os.path.join(main_dir, 'data')
a_sound = pygame.mixer.Sound(os.path.join(data_dir, "whiff.wav"))
c = pygame.mixer.Channel(1);
c.play(a_sound)
time.sleep(3)