Hi Clare,
I am curious about this. If you
do the mixer.init after the pygame one, place this inside the parens and se if
it works. Also, the get_busy can fail if the mode of the mixer is set wrong, and
that may be what is going on. If the channel mode is wrong, the busy will never
get set true.
I think the pygame.init is
erasing all modes for the mixer. So you would have to place the modes in
since the pygame.init erased them.
Try and see if that fixes it. I
had a
problem with the get_busy and discovered that might
just be the issue.
Insert this into
the mixer.init after the pygame init and see if it works.
pygame.mixer.init(21024) # (freq, size, stereo,
buffersize)
# 1=mono, 2=stereo and 1024 buf size, 2050 for 16 bit pygame.mixer.init(21024) # 2 for stereo and 1024 for Buf Size ----- Original Message -----
From: Clare Richardson
Sent: Wednesday, October 10, 2007 5:27 PM
Subject: RE: [pygame] pygame.init before
pygame.mixer.init? I tried running your code and don?t
hear anything playing. I added back pygame.mixer.init() before
pygame.init() in your code, and it played. --
Clare From: owner-pygame-users@xxxxxxxx
[mailto:owner-pygame-users@xxxxxxxx] On
Behalf Of Ian Mallett The simplest thing to do
is:
No virus found in this incoming message. Checked by AVG Free Edition. Version: 7.5.488 / Virus Database: 269.14.6/1061 - Release Date: 10/10/2007 8:43 AM |