[MPlayer-dev-eng] [PATCH] libbs2b audio filter

Andrew Savchenko bircoph at gmail.com
Thu Mar 5 13:49:48 CET 2009


Hello,

The following patchset add support for Bauer stereophonic to 
binaural DSP audio filter using libbs2b: 
http://bs2b.sourceforge.net/index.html

Please note, this is NOT hrtf transform already implemented in 
mplayer. In short it makes 2ch audio in headphones sound similar 
to the same audio from loudspeakers. Details are available by the 
link above.

libbs2b-configure.patch adds library detection code to the build 
system.

Library provides pkgconfig file, but I added fallback checks for 
the systems where pkg-config is not installed or failed for some 
reason.

libbs2b-filter.patch add audio filter itself.

Note concerning -Wno-pointer-arith: ISO C stardard (ISO/IEC 
9899:TC3), section 6.2.4, paragraph 27 states: "A pointer to void 
shall have the same representation and alignment requirements as a
pointer to a character type.", but gcc (as of version 4.3.0) issues 
a warning in this case and this warning must be disabled as bogus. 
Necessity of using void* pointers and pointer to function ensues 
from aiming to avoid six different play functions for different 
types of audio data or even worse alternative: switch statement 
inside single play function. Original processing functions from 
bs2b library are preffered over af_format filter insertion, 
because they are bs2b-transform specific and thus should be 
faster.

libbs2b-docs.patch is the man page update, describing this filter 
and its arguments.

-- 
Best regards,
Andrew
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libbs2b-configure.patch
Type: text/x-diff
Size: 2627 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090305/a3b5a40e/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libbs2b-filter.patch
Type: text/x-diff
Size: 8443 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090305/a3b5a40e/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: libbs2b-docs.patch
Type: text/x-diff
Size: 1239 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090305/a3b5a40e/attachment-0002.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20090305/a3b5a40e/attachment.pgp>


More information about the MPlayer-dev-eng mailing list