summaryrefslogtreecommitdiffstats
path: root/libaf
Commit message (Collapse)AuthorAgeFilesLines
* Make the code match the documentation by making higher-quality but slowerreimar2010-01-301-11/+0
| | | | | | | | audio filtering the default. This mostly means lavcresample being the default instead of plain "resample". git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30455 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a proper header for our strsep implementation so strsep willreimar2010-01-171-0/+1
| | | | | | | not be used without a declaration, causing issues on 64 bit systems. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30355 b3059339-0415-0410-9bf9-f77b7e298cf2
* Let the format filter do the AC3 endianness conversion instead of duplicatingreimar2010-01-111-21/+7
| | | | | | | the conversion code over and over. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30285 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for distinguishing between little- and big-endian SPDIF AC3reimar2010-01-114-5/+14
| | | | | | | and converting between both. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30283 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a hack to af_fmt2bits to recognize AC3 as a 16-bit format, since thisreimar2010-01-111-0/+1
| | | | | | | is more correct than 8 bit for alignment purposes. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30278 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add and use AF_FORMAT_IS_AC3 macro.reimar2010-01-111-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30276 b3059339-0415-0410-9bf9-f77b7e298cf2
* Revert r30170, AF_FORMAT_AC3 is supposed to be the special mask,reimar2010-01-111-1/+1
| | | | | | | and should not include other parts. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30275 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark AC3 as 16-bit format, this simplifies alignment calculation and fixesreimar2010-01-021-1/+1
| | | | | | | hwac3 with ALSA reportedly broken by r29750. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30170 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix mangling of 24-bit audio during channel reorder.tack2009-11-281-11/+11
| | | | | | | | | | | Only 1/3 of the samples in the buffer passed to reorder_channel_nch() were being reordered. For 8-, 16-, and 32-bit audio, the buffers could be treated as int8_t, int16_t, and int32_t respectively. 24-bit audio was being processed as int8_t, requiring iteration over n_samples*3, not n_samples. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29971 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for 8 channel audio.tack2009-11-104-13/+195
| | | | | | | | Where 8 channel support is non-trivial (e.g. ao_dsound), at least ensure we fail gracefully. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29868 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: remove trailing whitespace from file.tack2009-11-101-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29867 b3059339-0415-0410-9bf9-f77b7e298cf2
* reorder_ch: Remove unneeded AF_CHANNEL_LAYOUT_LAVC_AAC_DEC_*tack2009-11-042-6/+1
| | | | | | | All references to these values were removed r29821. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29822 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change libaf control ordering to make the controls unique again, ↵reimar2009-09-261-12/+12
| | | | | | | | | (AF_CONTROL_PAN_BALANCE vs. AF_CONTROL_PLAYBACK_SPEED), put them in-order again and add a bit of padding in-between. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29718 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix channel reordering when using 24-bit samples by adding breaks to casestack2009-08-191-0/+4
| | | | | | | | | missed by r29427. Patch submitted by Shane W, shane-mplayer csy ca git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29541 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: adjust alignment.tack2009-08-181-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29534 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix incorrect channel ordering for lavc audio codecs (specifically ffac3,tack2009-08-183-26/+23
| | | | | | | | | ffdca, ffflac, ffaac, fftruehd). In the process, adds support for 32-bit samples. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29533 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace WORDS_BIGENDIAN by HAVE_BIGENDIAN in all internal code.diego2009-07-263-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29443 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix 24bit audio playback.iive2009-07-191-0/+6
| | | | | | | | | | | | | The reordering channels code had reoccurring bug where in switch(samplesize) block the case 3 (3 bytes) doesn't end with break; leading to execution of the next case 4 too. This mangles the already processed data and causes massive memory corruption. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29427 b3059339-0415-0410-9bf9-f77b7e298cf2
* whitespace cosmetics: Remove all trailing whitespace.diego2009-05-1334-1324/+1324
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics for r29244 to follow K&R style closely.bircoph2009-05-031-17/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29245 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support for libbs2b ver. 3.0.0 API.bircoph2009-05-031-20/+82
| | | | | | | | Now filter parameters are highly controllable, virtually all audio formats are supported, and new profiles are available. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29244 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use native endian float filter provided by libbs2b instead ofbircoph2009-04-021-5/+2
| | | | | | | selection based on WORDS_ENDIAN. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29134 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add libbs2b audio filter itself.bircoph2009-04-022-0/+219
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29132 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unnecessary malloc.h #includes and related #ifdeffery.diego2009-04-021-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29126 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move config.h include directive up as a precaution measure.bircoph2009-03-281-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29091 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reorder includes alphabetically.bircoph2009-03-281-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29090 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove af_mp.h and add its content to af.hbircoph2009-03-282-34/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29089 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove af_msg special-casing API in libaf.bircoph2009-03-2820-180/+141
| | | | | | | Replace it by standard mp_msg message system. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29088 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove file names from file header, it only causes trouble.diego2009-03-151-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28959 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove several useless casts from af_resamplereimar2009-03-061-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28848 b3059339-0415-0410-9bf9-f77b7e298cf2
* Free af->setup and contents in af_resample uninit function.reimar2009-03-061-0/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28847 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use calloc to allocate the af_resample ring buffers, reportedly usingreimar2009-03-061-1/+1
| | | | | | | | | non-zeroed buffers can cause initial noise, see -dev-eng: [PATCH]: Add missing memset after malloc in libaf/af_resample.c Wed, 4 Mar 2009 15:29:30 +0800 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28846 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use a single malloc to allocate space for the circular buffers.reimar2009-03-061-5/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28845 b3059339-0415-0410-9bf9-f77b7e298cf2
* Comment typo fixes for af_resamplereimar2009-03-061-7/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28844 b3059339-0415-0410-9bf9-f77b7e298cf2
* af_stats: Some fixes to the new filteruau2009-02-211-13/+14
| | | | | | | | The just committed af_stats was an older version of the patch with broken max volume calculation. Fix that and do some cleanup. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28698 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing #include "config.h", fixes the warning:diego2009-02-211-0/+1
| | | | | | | libaf/af.c:23:5: warning: "HAVE_MALLOC_H" is not defined git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28697 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add statistics audio filter that prints information about the audio stream.diego2009-02-212-0/+160
| | | | | | | patch by Nicolas George, nicolas.george normalesup org git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28696 b3059339-0415-0410-9bf9-f77b7e298cf2
* Convert HAVE_MALLOC_H into a 0/1 definition, fixes the warning:diego2009-02-171-1/+1
| | | | | | | mem.c:32:5: warning: "HAVE_MALLOC_H" is not defined git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28629 b3059339-0415-0410-9bf9-f77b7e298cf2
* WORDS_BIGENDIAN is defined/undefined, not 0/1.diego2009-01-262-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28374 b3059339-0415-0410-9bf9-f77b7e298cf2
* Drop HAVE_LRINTF check, lrintf is used without checking in other places.diego2009-01-261-8/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28372 b3059339-0415-0410-9bf9-f77b7e298cf2
* HAVE_3DNOW --> HAVE_AMD3DNOWdiego2009-01-261-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28370 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix build: Add required header and adjust preprocessor check.diego2009-01-251-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28368 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing header for av_gcd, fixes the warning:diego2009-01-251-0/+1
| | | | | | | libaf/af_resample.c:204: warning: implicit declaration of function 'av_gcd' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28357 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix compilation: s/ff_gcd/av_gcd.cehoyos2009-01-171-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28338 b3059339-0415-0410-9bf9-f77b7e298cf2
* More #ifdef HAVE_MMX etc. missed by earlier search.reimar2009-01-161-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28327 b3059339-0415-0410-9bf9-f77b7e298cf2
* More #ifdef -> #if fixesreimar2009-01-161-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28326 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename libaf/af_format_alaw.c --> libaf/af_format_alaw.h anddiego2009-01-053-8/+8
| | | | | | | | | libaf/af_format_ulaw.c --> libaf/af_format_ulaw.h. Both files are not compiled but used as standard headers, so there is no reason for them not be named like any other header file. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28273 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use standard multiple inclusion guards.diego2009-01-052-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28272 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unnecessary local definition of _ISOC9X_SOURCE.diego2009-01-051-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28271 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove obsolete and misleading comment.diego2009-01-051-4/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28265 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace informal license notices by standard license headerdiego2009-01-0535-245/+705
| | | | | | | and add standard license header where missing. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28264 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix two more instances of nonstandard license headers.diego2009-01-051-11/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28262 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename libaf/af_resample.h to libaf/af_resample_template.c, it is used asdiego2009-01-022-5/+5
| | | | | | | a macro, not as a header file. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28236 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add const to avoid warnings about discarded qualifiers.reimar2008-12-051-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28091 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of pointless 'extern' keywords.diego2008-12-033-30/+29
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28085 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace preprocessor check for WIN32 with checks for __MINGW32__ and __CYGWIN__.diego2008-10-131-6/+5
| | | | | | | This avoids a pointless indirection that only obscures what is really done. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27761 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix channel order for ffmpeg flac codec.ulion2008-10-092-1/+6
| | | | | | | This patch comes from Andrew de Quincey <adq_dvb at lidskialf dot net>. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27732 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename a bunch of miscellaneous preprocessor directives.diego2008-08-071-1/+1
| | | | | | | Switch them from a HAVE_ to a CONFIG_ prefix. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27423 b3059339-0415-0410-9bf9-f77b7e298cf2
* Start unifying names of internal preprocessor directives.diego2008-07-301-4/+4
| | | | | | | | Replace all USE_ prefixes by CONFIG_ prefixes to indicate options which are configurable. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27373 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make af_hrtf tables static constreimar2008-07-151-6/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27291 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add const to libaf/filter.c functions.reimar2008-07-152-17/+17
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27290 b3059339-0415-0410-9bf9-f77b7e298cf2
* rename AF_CHANNEL_LAYOUT_LAVC_VORBIS* => AF_CHANNEL_LAYOUT_VORBIS*.ulion2008-06-072-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27019 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove useless parentheses from return statements.diego2008-05-161-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26791 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use standard license headers with standard formatting.diego2008-05-147-41/+40
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26772 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix illegal identifier: Rename _ftype_t macro to FLOAT_TYPE.diego2008-04-105-73/+92
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26382 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless #include.diego2008-04-091-1/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26377 b3059339-0415-0410-9bf9-f77b7e298cf2
* Merge libaf/Makefile into Makefile, one less instance of recursive make.diego2008-04-091-37/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26376 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove some useless quotes from #error preprocessor directives.diego2008-04-092-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26375 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use quotes instead of angular brackets for local includes.diego2008-04-094-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26374 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle af_ladspa conditional compilation in the usual way.diego2008-04-091-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26373 b3059339-0415-0410-9bf9-f77b7e298cf2
* #include config.h before all other headers.diego2008-03-141-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26235 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing header #include to fix 'make checkheaders'.diego2008-03-101-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26214 b3059339-0415-0410-9bf9-f77b7e298cf2
* af_export.c is only compiled if HAVE_SYS_MMAN_H is set, so using thatdiego2008-03-101-2/+0
| | | | | | | #ifdef within the file is pointless git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26213 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix ffvorbis d