[MPlayer-dev-eng] [PATCH] Set liba52 output volume

Zoltan Hidvegi mplayer at hzoli.2y.net
Tue Feb 15 10:36:58 CET 2005


The attached very simple patch adds a new option, -a52volume to set
the output level from liba52.  It's faster and more accurate than
using the volume filter, as it does the volume adjustmen on the
original float values before converting it to int.

It also adds ADCTRL_SET_VOLUME to ad_liba52.c.  ad.h claims that
liba52 should handle this, but of course it did not do that before.
But this is still useless, as there are no calls to ADCTRL_SET_VOLUME.
It would be nice if it could be used for interactive volume control,
and I hope someone more skilled than myself will look into that.

I think I have cvs access, so if someone approves this change, I can
check it in in a week or two.

Zoli
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: a52vol.patch
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050215/29194922/attachment.txt>


More information about the MPlayer-dev-eng mailing list