Commit Graph

39 Commits

Author SHA1 Message Date
ulion 1ed6e96cfb Fix all current known multi-channel wrong order problems by adding
common functions for channel reordering.
This fixes these modules by adding channel reordering code for 5.0/5.1 audio:
ao: pcm
ad: dmo, faad, ffmpeg(ac3, dca, libfaad, liba52), pcm
ae: faac, lavc(ac3, libfaac), pcm


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25343 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-12-10 16:53:30 +00:00
ulion 586f07744c Support dump AF_FORMAT_AC3 format.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25125 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-11-21 08:55:41 +00:00
reimar 18004d2d98 Hack around libavutil/bswap.h compilation problems due to always_inline undefined.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21523 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-12-07 11:58:07 +00:00
diego cac6c0eea2 Remove bswap.h, use libavutil/bswap.h instead.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21388 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-29 15:02:45 +00:00
reimar 329ba64c0a le2me_32 is no longer a macro on PPC, and in general does not have to
be, thus using it like a constant is incorrect.
Move wavhdr initialization to the code.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21266 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-11-26 13:19:32 +00:00
diego 5115aa181d Only set the default output filename when it was not passed on the command
line.  Noticed by Corey Hickey.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18501 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-14 10:21:56 +00:00
diego 3de60f8ff7 Move setting the output filename after the suboption parsing, otherwise it
cannot take the suboptions that were set into account.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18489 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-05-13 19:04:39 +00:00
reimar 86b0871127 -ao pcm:fast suboption for faster-than-realtime dumping
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18093 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-04-14 13:18:35 +00:00
rathann e7db4ccf1a Patch by Stefan Huehner / stefan % huehner ! org \
patch replaces '()' for the correct '(void)' in function
declarations/prototypes which have no parameters. The '()' syntax tell
thats there is a variable list of arguments, so that the compiler cannot
check this. The extra CFLAG '-Wstrict-declarations' shows those cases.

Comments about a similar patch applied to ffmpeg:

That in C++ these mean the same, but in ANSI C the semantics are
different; function() is an (obsolete) K&R C style forward declaration,
it basically means that the function can have any number and any types
of parameters, effectively completely preventing the compiler from doing
any sort of type checking. -- Erik Slagter

Defining functions with unspecified arguments is allowed but bad.
With arguments unspecified the compiler can't report an error/warning
if the function is called with incorrect arguments. -- Måns Rullgård


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17567 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-02-09 14:08:03 +00:00
reimar 252d940dd8 Set block_align in header, seems MatLab can not handle files without.
Patch by Pedro Larroy Tovar (pedro at larroy dot com).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@16244 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-08-17 11:27:11 +00:00
reimar 64489b4d0c use MSTRZ suboption type
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14540 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-01-19 17:18:25 +00:00
reimar 60f4241a6d Default to audiodump.pcm with nowaveheader again, but document it in the manpage this time.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14328 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-01-03 14:16:07 +00:00
reimar 47d716f101 Do not use strndup, it is missing on MinGW.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14302 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-01-02 16:39:03 +00:00
faust3 61780877b5 missing ;
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14301 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-01-02 16:01:36 +00:00
reimar eca47b1a5e Add -ao pcm suboptions and remove -aofile and -waveheader options.
Base on idea by Olivier Rolland (billl at users dot sf dot net)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14299 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-01-02 14:41:47 +00:00
alex 14a29762f2 af_fmt2str_short
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14265 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-12-28 19:11:14 +00:00
alex 507121f7fe removing AFMT_ dependancy
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14246 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-12-27 17:30:15 +00:00
diego 67a1fd4053 Make include paths consistent.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14124 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-12-07 02:24:15 +00:00
ivo 0f9f4caba4 mp_msg transition of unmaintained audio output drivers.
Patch by Reynaldo H. Verdejo Pinochet <reynaldo at opendot dot cl>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@13384 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-09-18 20:31:28 +00:00
alex 504270e549 uninit immed flag
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12146 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-04-06 17:55:36 +00:00
attila ffb529e4eb 64bit types fix by a unkown mandrake 64bit expert
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@11271 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-10-26 13:43:30 +00:00
ranma e6c118b982 Correct dumping hint (vc dummy faster than null).
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10078 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-05-05 23:43:30 +00:00
alex d65c8518de 64bit libao2 fix by Jens Axboe <mplayer-dev@kernel.dk>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9634 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-03-21 16:42:50 +00:00
arpi 7a35f528d1 The "initialize wav header with infinite lenght" broke the
post-recording fixup by changing the initialisation value of
data_length.  This fixes it.
based on patch by Olivier Galibert <galibert@pobox.com>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9278 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-02-04 18:22:43 +00:00
arpi 32ed76c8c4 temporary 'inifinte' length disabled (commit r1.13 reversed) due to user
compalints


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9224 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-02-02 16:34:54 +00:00
arpi 2b8643963c double free(), found by Olivier Galibert <galibert@pobox.com>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9157 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-29 12:22:00 +00:00
arpi 40789473d2 When the file is not finished to be written,
it has a temporary length of 0. It is more logical to
write an infinite length. (sox does this)
patch by Alain Daurat <daurat@tiscali.fr>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9027 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-01-19 16:49:02 +00:00
colin e5fd9702fd fix endianness issue on bigendian (let libaf do the conversion ;))
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8061 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-02 21:54:08 +00:00
arpi 24d0b8f5e1 updated for libaf rules
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7659 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-10-07 19:51:00 +00:00
arpi c750b8ab2d -vc null is better than -hardframedrop -- hint by gabor <gabor@realtime.sk>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6942 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-08-06 20:31:48 +00:00
arpi 8b9de50aff endianess fix by Colin Leroy <colin@colino.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6763 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-07-21 12:13:40 +00:00
albeu 3a376cd09c Allow writing to pipe.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6502 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-06-22 12:10:02 +00:00
pl e045dc53b4 warning fixes (string.h is required for memset)
moved config.h at the top of the include (often avoids 10L when adding a
  new #include ;)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6238 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-30 11:53:51 +00:00
atmos4 1b990d79ec - Fix for big apple architectures by Rogerio Brito, reworked by me to use bswap.h macros.
- Fix with audio only files.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5838 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-26 13:07:03 +00:00
arpi 3d61c6346f good-looking fix by Tobias Diedrich <td@informatik.uni-hannover.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4915 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-03-02 18:54:58 +00:00
anders 242aa6ebd4 interface to libao2 changed ao_plugin added
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3096 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-11-24 05:21:22 +00:00
atmosfear 0f886c7aff Ooops
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1114 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-06-12 14:37:32 +00:00
atmosfear b9e199808d Added support for writing wave files and specifying filename to write to.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1113 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-06-12 14:24:26 +00:00
atmosfear de46867f2d Added raw PCM writer ao driver.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@1108 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-06-12 11:00:15 +00:00