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

Dan Christiansen danchr at daimi.au.dk
Fri May 23 01:46:24 CEST 2003


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 
af_volume.c and simplified them.

There's one small thing that I don't understand me, namely soft 
> 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?

- Dan

-------------- next part --------------
A non-text attachment was scrubbed...
Name: mplayer-ao-volume.diff
Type: application/octet-stream
Size: 4957 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20030523/d58ffd48/attachment.obj>

More information about the MPlayer-dev-eng mailing list