[MPlayer-users] Volume Control Suggestion
Attila Kinali
kinali at gmx.net
Tue Jan 1 11:10:51 CET 2002
On Tue, 1 Jan 2002 00:51:35 -0500 (EST)
Hui Zhang <huiz at gradient.cis.upenn.edu> wrote:
> I am thinking of doing something more than that. I'd like to see two or
> more programs with sound that are playing at the same time can adjust
> their respective volume in dependent of one another. That is the approach
> of the windows media player 6 and above, also the new quicktime player.
> the realplay doesn't do that and it doesn't do what you suggest either,
> which I find extremely annoying.
Have you ever heard of esd, arts and all the other sound daemons ?
(iirc there are 4 or 5 of them) They do exactly this and even more.
Most of them are designed to be network transparent.
> for(i=0; i< len; buf[i] *= 0.5, i++);
>
> I expect it to decrease the volume by half. It doesn't seem to work. Any
> ideas? You can tell I've never worked with this before.
Yes, you have a sound format look into libao2/afmt.h.
You have to support at least the S8, U8, S16_* and U16_* to get something
usefull. And also take care that you have more than one channel.
Attila Kinali
--
I am a moslem, i am a terrorist.
More information about the MPlayer-users
mailing list