[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] can someone please test this short script on python3.2/python3.1 ?
Thanks for testing. I guess that is a separate bug. Or maybe it can just be labeled under an 'oddity' or 'feature' ;)
But for the purposes of that bug, the Channel.play is working fine, so I'll close that bug.
On Tue, Sep 6, 2011 at 6:43 PM, Christoph Gohlke <cgohlke@xxxxxxx>
For me this script does not work with any Python version on Windows unless pygame.init() is replaced with pygame.mixer.init().
On 9/6/2011 6:56 AM, René Dudfield wrote:
we have a bug report of a failure on python 3.1 with the
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
main_dir = os.path.split(os.path.abspath(pygame.examples.__file__))
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);
See also the first comment at <http://pygame.org/docs/ref/mixer.html>