[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[pygame] volume change with pygame.mixer.music.set_volume(val)
- To: pygame-users@seul.org
- Subject: [pygame] volume change with pygame.mixer.music.set_volume(val)
- From: Andrew Jones <andy@larrymite.com.au>
- Date: Fri, 21 Jun 2002 13:24:51 +1000
- Delivered-To: archiver@seul.org
- Delivered-To: pygame-users-outgoing@seul.org
- Delivered-To: pygame-users@seul.org
- Delivery-Date: Thu, 20 Jun 2002 23:11:42 -0400
- Reply-To: pygame-users@seul.org
- Sender: owner-pygame-users@seul.org
- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.4) Gecko/20010914
Hello all.
After a rather long development pause pyzzle development is back on. (-:
yea for the mid year break.
I work on getting pyzzle working correctly with pygame-1.5 and ran into the
problem of:
When trying to set a specific volume for music with a call to pygame.mixer.music.set_volume(vol)
for any value of vol > 0.0 it plays the music at full volume or if vol
is set to 0.0 no music can be heard.
Its one of those all or nothing problems.
Im using SDL && SDL_mixer 1.2.2 with python2.2.1.
im a little stumped by this problem.
If you want a look at my code download via cvs from:
cvs -d:pserver:anonymous@cvs.pyzzle.sourceforge.net:/cvsroot/pyzzle
login
and
cvs -z3 -d:pserver:anonymous@cvs.pyzzle.sourceforge.net:/cvsroot/pyzzle
co pyzzle-cvs
the sound.py file in /enginecode dir is where all the action takes place.
Note ive got a quick solution impelemented by just using a sound file with
lower a level set.
Thanks
Andy
____________________________________
pygame mailing list
pygame-users@seul.org
http://pygame.seul.org