Commit Graph

27 Commits

Author SHA1 Message Date
reimar 4e411b9089 Mono audio should be supported by NAS, too.
Patch by Erik Auerswald {auerswal -at- unix-ag <dot> uni-kl de}


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23024 b3059339-0415-0410-9bf9-f77b7e298cf2
2007-04-19 16:28:59 +00:00
reynaldo 96565761f1 make prefix const. Patch by Stefan Huehner, stefan AT huehner-org
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18970 b3059339-0415-0410-9bf9-f77b7e298cf2
2006-07-09 03:42: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
ranma a73a629c1b Add missing range checks so we won't overflow the buffers, thanks to Erik Auerswald for noticing this problem
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15742 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-06-17 02:22:34 +00:00
reimar 95cf851ea6 aos should respect the immed uninit flag (quit immediatly vs waiting till file
is played to end).


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14850 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-02-27 23:06:32 +00:00
reimar 69d65e59de actually mp_msg.h includes config.h, but for consistency better include it
explicitly.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14481 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-01-12 22:07:44 +00:00
reimar fa8c50d4cf af_format.h needs config.h to be included first.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14480 b3059339-0415-0410-9bf9-f77b7e298cf2
2005-01-12 22:00:02 +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
reimar 91aae0d538 100l, buf etc. in af_fmt2str call are already pointers...
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14256 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-12-27 19:43:13 +00:00
alex 8749400133 10l, nasty ao drivers
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@14253 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-12-27 18:16:55 +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
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
ranma 578af24bb4 Use MultiplyElement to control volume.
Works with multiple videos at the same time and even
when NAS does not control the mixer or it is unavailable.

Show buffer underrun hint only once and add missing linebreaks.


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@12023 b3059339-0415-0410-9bf9-f77b7e298cf2
2004-03-13 21:54:35 +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
ranma d5d89cca6a Fix small memleak in control().
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@9584 b3059339-0415-0410-9bf9-f77b7e298cf2
2003-03-14 17:19:19 +00:00
ranma 422acb829c Implement volume setting functionality,
original patch by Nguyen Kim <nguyenk@ie2.u-psud.fr>.
Note that volume changing never worked on my system with NAS, but
that seems to be a nasd problem which I did not try to track down yet...


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8273 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-11-24 23:13:15 +00:00
arpi 033d4f505a Fixes:
- missing check in init
- missing brackets causing failure
- nas_aformat_to_auformat not working properly
- fix hang that was finally reproducible with high disk activity
- don't cut of audio on uninit(), wait for buffer to empty

It also simplifies the event_handler, making it more readable and
implements Sidik Isani's suggestion to make the buffer size dependent on
bytes per second. I've been using it for two days and found no further
problems.

patch by Tobias Diedrich <td@sim.uni-hannover.de>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7733 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-10-13 22:00:15 +00:00
arpi 80727bf898 libaf compliance (ao_data) fix by Tobias Diedrich <td@sim.uni-hannover.de>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7647 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-10-07 01:50:49 +00:00
arpi 1b28b8a9c7 DPRINTF -> mp_msg()
patch by Tobias Diedrich <td@sim.uni-hannover.de>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7628 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-10-06 17:31:36 +00:00
arpi 6ca9809c9e Small error, the buffer size got set incorrectly.
(Now BUFFER_SIZE * 3 instead of BUFFER_SIZE * 2)
patch by Tobias Diedrich <td@sim.uni-hannover.de>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7627 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-10-06 17:30:38 +00:00
arpi 8680f58f89 "One can cause a permanent hang on a seek, and the other just causes
general jerkiness because the writer thread was holding a lock
  during the time it was writing to the network."
patch by Sidik Isani <lksi@cfht.hawaii.edu>


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7450 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-09-20 18:26:54 +00:00
pl eb7cbca975 Patch by Tobias Diedrich <td@informatik.uni-hannover.de>:
- fix segfault due to unitialized struct in ao_nas


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6115 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-05-18 09:15:49 +00:00
arpi ceda76523a AFMT_AC3 autodetect/fallback to S16
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@5791 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-04-22 22:33:06 +00:00
atmos4 d0bfffd1a2 improved event handling, implemented working pause that does not flush all buffers, work around a deadlock in the new threadsafe version 1.5 of libaudio by Tobias Diedrich
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@4776 b3059339-0415-0410-9bf9-f77b7e298cf2
2002-02-20 22:45:48 +00:00
pl 41f9bd6c90 patch by Tobias Diedrich <td@informatik.uni-hannover.de>
add credits & fix a typo


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3337 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-05 12:12:00 +00:00
arpi 0a2d56ae1b -ao NAS support by Tobias Diedrich <ranma@gmx.at>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@3277 b3059339-0415-0410-9bf9-f77b7e298cf2
2001-12-03 01:13:48 +00:00