[MPlayer-dev-eng] PATCH dynamic link loader for libaf, audio filter package

mmh mmh at pleasantst.com
Fri Jun 15 06:20:23 CEST 2007


Hello,

This small patch provides the ability to load audio filters at runtime
into mplayer.

The API for the audio filter is identical to the existing libaf.  This
way if a module needs to be provided separately it can be done by
providing a shared object which can be inserted at runtime into the
audio filter chain.

The only interface change which needs to be provided by the shared
object is that it must define a pointer to the info structure which
defines the filter.  This is done like this:

af_info_t af_info_simple = {
	  "simple audio filter",
	  "simple",
	  "mmh",
	  "ex: simple",
	  AF_FLAGS_NOT_REENTRANT,
	  open
};

af_info_t *af_info_descriptor = &af_info_smpte;


The dynamic loader searches the shared object for af_info_descriptor
and if found interprets it as the af_info_t struct.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: afdl.patch
Type: text/x-patch
Size: 1204 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20070615/a9761e7e/attachment.bin>


More information about the MPlayer-dev-eng mailing list