[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[pygame] Volume control with mixer.music.set_volume affected by xmms
- To: pygame-users@xxxxxxxx
- Subject: [pygame] Volume control with mixer.music.set_volume affected by xmms
- From: Srinath Avadhanula <srinathava@xxxxxxxxx>
- Date: Tue, 13 Sep 2005 16:33:53 -0700
- Delivered-to: archiver@seul.org
- Delivered-to: pygame-users-outgoing@seul.org
- Delivered-to: pygame-users@seul.org
- Delivery-date: Tue, 13 Sep 2005 19:34:06 -0400
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=pAwA9cOt3usKip0pvcMrsZ+Pohmi3adMicrdoOG9OPdmvtC/mBWN2BJG15myGkjOiVkGzcznelSmhJKl48wByk5YOjJgSDyj47cmCH3oPn2nzg1DpdFxJhlZszqZLyvs6on0PytXrhxSWrQjBeIF66iI5RcLYZVT8c/3XepYufg=
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Hi,
This is again in relationship to a snooze program which I've
written. I have it working well now thanks to help from here.
However, there is a (hopefully) small problem:
In my snooze program, I set the volume at which things will be
played using the mixer.music.set_volume() function. However, if
someone on the same machine uses xmms (the player) and changes
the volume in that application, the next time I call
mixer.music.set_volume() with the same number and play the same
piece, the actual volume at which the music plays differs.
I guess that xmms actually affects some system level volume which
comes after the volume which mixer.music.set_volume() sets. This
could be a problem if I use xmms at a high volume and then the
snooze program wakes me up with some LOUD sounds the next morning
:) Is there some way in which I can enforce a given volume
entirely from within pygame. I don't mind a solution which needs
some operating level command.
My OS is the latest Kubuntu release (installed it only a few days
ago).
Thank you,
Regards
--
Srinath Avadhanula