summaryrefslogtreecommitdiffstats
path: root/libao2
<
Commit message (Collapse)AuthorAgeFilesLines
* Explain why we still disable the ALSA resampler even though it is probablyreimar2010-01-281-1/+2
| | | | | | | actually working nowadays. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30452 b3059339-0415-0410-9bf9-f77b7e298cf2
* Declare variable closer to where it is used.reimar2010-01-271-9/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30444 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove a useless global variable.reimar2010-01-271-5/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30443 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not needlessly make local variable static.reimar2010-01-271-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30442 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove useless initializers.reimar2010-01-271-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30441 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not needlessly use (file-)global variables.reimar2010-01-271-4/+3
| | | | | | | | Since they also were initialized to a value and non-constant (changed by ALSA) this might actually have caused bugs. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30440 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support more formats for -ao pcm in raw mode.reimar2010-01-231-24/+19
| | | | | | | Patch by Peter Fordham [peter.fordham gmail com] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30400 b3059339-0415-0410-9bf9-f77b7e298cf2
* MPlayer's format now correctly identifies AC3 as either little- or big-endian,reimar2010-01-111-7/+1
| | | | | | | remove unnecessary special workaround. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30284 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for distinguishing between little- and big-endian SPDIF AC3reimar2010-01-117-20/+24
| | | | | | | and converting between both. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30283 b3059339-0415-0410-9bf9-f77b7e298cf2
* More uses of AF_FORMAT_IS_AC3reimar2010-01-112-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30282 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use AF_FORMAT_IS_AC3 in ao_oss.creimar2010-01-111-5/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30281 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use af_fmt2bits, it should give more sensible values than ↵reimar2010-01-111-1/+1
| | | | | | | | | snd_pcm_format_physical_width, especially for AC3. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30279 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use af_fmt2bits instead of reimplementing it.reimar2010-01-111-17/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30277 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add and use AF_FORMAT_IS_AC3 macro.reimar2010-01-113-7/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30276 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fixup SDL configure check:reimar2010-01-031-0/+4
| | | | | | | | | | - Make it work without sdl-config which adds at least useless or even hurtful cflags and also does not work for cross-compiling - If using sdl-config, make it use the CFLAGS we actually use for compiling instead of something else. Thus #undef main is needed in the test program. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30178 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify range-checking functions for subopt parsing.reimar2010-01-011-3/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30165 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix function declarations to avoid casting function pointers.reimar2010-01-012-3/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30164 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a missing const, fixes a compiler warning.reimar2009-12-181-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30062 b3059339-0415-0410-9bf9-f77b7e298cf2
* Allow pulseaudio to restore the previous volume on init instead of forcing toreimar2009-12-181-4/+1
| | | | | | | | full volume. The old behaviour can be restored by using -volume 100. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30061 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of global volume variable, it is only used for temporary values.reimar2009-12-181-5/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30060 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add support for 8 channel audio.tack2009-11-103-2/+14
| | | | | | | | 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
* fix calculation of ao_data.bps for sample formats with more than 16 bitscladisch2009-10-051-1/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29750 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make the ao_alsa play function always process a multiple of ao_data.outburstreimar2009-10-021-1/+4
| | | | | | | | except for the last chunk. Should fix high CPU usage reported e.g. here: http://bugs.gentoo.org/show_bug.cgi?id=286020 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29748 b3059339-0415-0410-9bf9-f77b7e298cf2
* The suboption parser now takes a const options list, so mark them all const.reimar2009-09-027-7/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29628 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use a buffer of about half a second, instead of sizing it to havecladisch2009-08-241-80/+3
| | | | | | | a constant number of frames. This improves the behaviour at very small or large sample rates, and gets rid of lots of obsolete code. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29549 b3059339-0415-0410-9bf9-f77b7e298cf2
* OpenAL: untested support for 8-channel audio.reimar2009-08-191-2/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29542 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change ao_dart to use AVFifoBuffer instead of its own fifo implementation, too.reimar2009-08-191-69/+11
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29540 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l, av_fifo_generic_read does not return anything useful, so ignore itsreimar2009-08-082-3/+5
| | | | | | | return value and return len instead. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29481 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not leak the mixer handle if setting of a volume fails.cladisch2009-08-061-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29478 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace WORDS_BIGENDIAN by HAVE_BIGENDIAN in all internal code.diego2009-07-266-9/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29443 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use the correct OSS format, where possible, for mplayer's packed 24-bitcladisch2009-07-241-22/+4
| | | | | | format (AFMT_x24_xE would be 32-bit aligned). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29438 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use correct ALSA sample format for 24-bit samples packed in three bytes.cladisch2009-07-211-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29434 b3059339-0415-0410-9bf9-f77b7e298cf2
* Handle 24bit audio formats natively by ALSA.iive2009-07-191-0/+12
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29428 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add a hack to detect when we are writing into a Windows pipe since the fseekreimar2009-05-161-1/+11
| | | | | | | | | incorrectly does not fail like it should. This ensures we will not incorrectly append the file header at the end. Based on patch by Zhou Zongyi [zhouzongyi at pset.suntec.net] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29311 b3059339-0415-0410-9bf9-f77b7e298cf2
* whitespace cosmetics: Remove all trailing whitespace.diego2009-05-1320-196/+196
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add missing 'void' to parameterless function declarations.diego2009-05-041-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29254 b3059339-0415-0410-9bf9-f77b7e298cf2
* Rename macosx audio output driver to coreaudio.diego2009-05-042-10/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29251 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use libavutil/fifo.h for macosx ao instead of its own FIFO implementation.reimar2009-05-031-77/+21
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29243 b3059339-0415-0410-9bf9-f77b7e298cf2
* Simplify: use av_fifo_spacereimar2009-04-102-4/+4
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29166 b3059339-0415-0410-9bf9-f77b7e298cf2
* Disable pause-hack from PulseAudio 0.9.15 on, it should be fixed.reimar2009-04-091-3/+3
| | | | | | | | Patch Lennart Poettering [lennart poettering net] with documentation update by me. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29160 b3059339-0415-0410-9bf9-f77b7e298cf2
* Split oversized of "argument" onto a separate line.reimar2009-04-091-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29159 b3059339-0415-0410-9bf9-f77b7e298cf2
* Also lock the mainloop when doing adjusting the volume for PulseAudio.reimar2009-04-091-0/+3
| | | | | | | Patch by Lennart Poettering [lennart poettering net] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29158 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make sure waitop always unlocks the mainloop even if the operation could notreimar2009-04-091-1/+4
| | | | | | | | be created. Patch by Lennart Poettering [lennart poettering net] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29157 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add forgotten "static" to new data_length variable in ao_pcmreimar2009-03-221-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29037 b3059339-0415-0410-9bf9-f77b7e298cf2
* Whitespace-only cosmetics: use consistent indentation in ao_pcm.creimar2009-03-221-137/+137
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29036 b3059339-0415-0410-9bf9-f77b7e298cf2
* Print a warning if ao_pcm wrote more data than what can be specified in thereimar2009-03-221-5/+11
| | | | | | | WAV header (ca. 2GB currently) or if it can not update the header at all. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29035 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not call waveOutReset in uninit if you should wait till playing finishes,reimar2009-03-091-1/+2
| | | | | | | and retry waveOutClose if it fails due to still playing. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28918 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reuse libavutil fifo code instead of reimplementing it over and over.reimar2009-03-092-133/+56
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28917 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make audio_out_* structs const so they end up in .rodatareimar2009-03-062-24/+24
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28859 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make ao_info_t structs const.reimar2009-03-0623-23/+23
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28858 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use code that is actually thread-safe to calculate delay, free space etc. in ↵reimar2009-03-061-10/+13
| | | | | | ao_win32 git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28857 b3059339-0415-0410-9bf9-f77b7e298cf2
* Cosmetics: get rid of trailing whitespace.reimar2009-03-061-23/+23
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28856 b3059339-0415-0410-9bf9-f77b7e298cf2
* get rid of full_buffers variable, if the check it is used for is triggeredreimar2009-03-061-9/+0
| | | | | | | something is seriously wrong and the ao will not work right anyway. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28855 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove now unused buf_write_pos variable from ao_win32reimar2009-03-061-4/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28854 b3059339-0415-0410-9bf9-f77b7e298cf2
* Always write full buffers in ao_win32, except for the last block.reimar2009-03-061-8/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28853 b3059339-0415-0410-9bf9-f77b7e298cf2
* Use calloc instead of malloc+memsetreimar2009-03-061-3/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28852 b3059339-0415-0410-9bf9-f77b7e298cf2
* The 8 bit per sample formats are unsigned on Windows, fixes playback withreimar2009-03-062-2/+2
| | | | | | | | -af format=s8 for -ao dsound and -ao win32. Patch by Zhou Zongyi [zhouzongyi (at) pset suntec net] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28850 b3059339-0415-0410-9bf9-f77b7e298cf2
* Sleep based on get_delay in ao_win32 uninit instead of a loop.reimar2009-03-051-1/+2
| | | | | | | The loop for an unknown reason could rarely cause an endless loop. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28828 b3059339-0415-0410-9bf9-f77b7e298cf2
* full_buffers and buffered_bytes must be volatile because they are used fromreimar2009-03-051-2/+2
| | | | | | | | different threads, hopefully this fixes an uninit hang. The code still relies on luck for thread-safety though. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28811 b3059339-0415-0410-9bf9-f77b7e298cf2
* DART audio output driver for OS/2 by KO Myung-Hun, komh chollian netdiego2009-03-012-0/+338
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28775 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move resetting audio_info_t samples, eof and error in ao_sun.c to reset(), ↵reimar2009-02-211-8/+9
| | | | | | | | | avoids duplication code from init() and fixes hangs after seeking. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28689 b3059339-0415-0410-9bf9-f77b7e298cf2
* Work around a PulseAudio bug that causes MPlayer to hang after unpausing.reimar2009-02-191-0/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28668 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set samplerate in reset also for AC3, and set it before the format in thatreimar2009-02-171-0/+2
| | | | | | | case (no idea why, but it is done this way in init, so it is consistent). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28640 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l, do 0-filling on resume (to avoid desync after pause) in ao_oss only whenreimar2009-02-161-1/+1
| | | | | | | the we output a PCM format, not for e.g. AC3. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28614 b3059339-0415-0410-9bf9-f77b7e298cf2
* 1) HAVE_SYS_ASOUNDLIB_H/HAVE_ALSA_ASOUNDLIB_H are defined to 0/1,diego2009-01-302-3/+4
| | | | | | | | not defined/undefined, use them accordingly. 2) Add ESD definitions to avoid undefined preprocessor directives warnings. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28397 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add standard license headers.diego2009-01-2613-29/+265
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28378 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace deprecated jack_client_new with jack_client_open.reimar2009-01-041-2/+10
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28241 b3059339-0415-0410-9bf9-f77b7e298cf2
* Move several of the ao_nas int-to-string maps into .rodatareimar2009-01-011-8/+8
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28227 b3059339-0415-0410-9bf9-f77b7e298cf2
* 100l, reorder check for AC3 format to avoid a possible memleakreimar2008-12-151-3/+3
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28153 b3059339-0415-0410-9bf9-f77b7e298cf2
* Get rid of pointless 'extern' keywords.diego2008-12-033-4/+4
| | | | 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-1/+1
| | | | | | | 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
* Replace numeric constants by their defines.cehoyos2008-10-091-4/+4
| | | | | | | Fixes icc warning #188: enumerated type mixed with another type git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27738 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix "format '%d' expects type 'int', but argument 6 has type 'size_t'" warning.ranma2008-10-041-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27714 b3059339-0415-0410-9bf9-f77b7e298cf2
* Make alsa resume after suspend to disk (would say 'file descriptor is in bad ↵ranma2008-10-041-0/+4
| | | | | | state' before this change) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27712 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace casual GPL notices by proper license headers.diego2008-09-074-18/+69
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27541 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace casual GPL notice by proper license header.diego2008-09-061-3/+19
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27534 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix 'cast from pointer to integer of different size' on 64bit architectures. ↵