[MPlayer-dev-eng] [PATCH] Volume for ao_macosx

Arpi arpi at thot.banki.hu
Fri May 23 01:51:10 CEST 2003


Hi,

> Attached below is a patch which adds volume control to ao_macosx. I 
> took a peak at af_volume etc., to see if that could handle it, but it 
> seemed nearly impossible. So I extracted the required parts from 

why impossible?

> af_volume.c and simplified them.

refused!!!!!!!!!!!!

it's like copy video filters code to vo drivers...

> There's one small thing that I don't understand me, namely soft 
> clipping:
> > if (x >=  M_PI/2)
> >   x = 1.0;
> > else if(x <= -M_PI/2)
> >   x = -1.0;
> > else
> >   x = sin(x);
> 
> What does the last line do?

x = sinus x

do you know the sinus curve, don't you? :)


A'rpi / Astral & ESP-team

--
Developer of MPlayer G2, the Movie Framework for all - http://www.MPlayerHQ.hu



More information about the MPlayer-dev-eng mailing list