[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
Re: [pygame] Volume control with mixer.music.set_volume affected by xmms
- To: pygame-users@xxxxxxxx
- Subject: Re: [pygame] Volume control with mixer.music.set_volume affected by xmms
- From: Rene Dudfield <renesd@xxxxxxxxx>
- Date: Wed, 14 Sep 2005 09:45:53 +1000
- 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:46:05 -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:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=G8pKRWF6i4gnvJlUxo1m1CdC0+aB6WDERwChD1t03apyCrxPaJd/EXSMS4UEglHYdzBxVFogE1V/r6IMlSwvXjDb1lHfBM1ARf/qFplooIuGdvBDI4T3zJHxBEyij1LL6bmU2v+Go8bam/l8nbuJvrDDydPWWkMYFlbxLa9LtRA=
- In-reply-to: <ed97310c050913163363dff2ff@mail.gmail.com>
- References: <ed97310c050913163363dff2ff@mail.gmail.com>
- Reply-to: pygame-users@xxxxxxxx
- Sender: owner-pygame-users@xxxxxxxx
Aumix works well...
man aumix
To set the main volume to 78
aumix -v 78
You can also query the main volume:
aumix -v q
Cheer.
On 9/14/05, Srinath Avadhanula <srinathava@xxxxxxxxx> wrote:
> 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
>