[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 ?
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);
For me this script does not work with any Python version on Windows
unless pygame.init() is replaced with pygame.mixer.init().
See also the first comment at <http://pygame.org/docs/ref/mixer.html>