summaryrefslogtreecommitdiffstats
path: root/libao2
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused forward declarations.diego2010-05-251-2/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31212 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change WAV header updating in ao_pcm to allow to up to almost 4GB size.reimar2010-05-211-2/+4
| | | | | | | Patch by Rob McMullen [robm users sourceforge net] git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31189 b3059339-0415-0410-9bf9-f77b7e298cf2
* Include libavutil/avutil.h for FFMINkomh2010-03-101-0/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30881 b3059339-0415-0410-9bf9-f77b7e298cf2
* Drop support for old-style DVB code.diego2010-03-021-15/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30818 b3059339-0415-0410-9bf9-f77b7e298cf2
* Do not cast the results of malloc/calloc/realloc.diego2010-02-261-5/+5
| | | | | | | | These functions return void*, which is compatible with any pointer, so there is no need for casts. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30744 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark theRenderProc() as static, it is only used within the file.diego2010-02-231-1/+5
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30718 b3059339-0415-0410-9bf9-f77b7e298cf2
* Output WAVE_FORMAT_EXTENSIBLE extension in wave header when waveheadertack2010-02-221-44/+68
| | | | | | | | option is enabled (default) and channels > 2. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30708 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark data argument of my_ao_write() function as const.diego2010-02-221-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30706 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add header for v4l2_write() instead of forward declaring it.diego2010-02-211-2/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30692 b3059339-0415-0410-9bf9-f77b7e298cf2
* cosmetics: Remove pointless empty lines at EOF.diego2010-02-209-24/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30675 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove pointless '#if 1' preprocessor directives.diego2010-02-191-3/+0
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30654 b3059339-0415-0410-9bf9-f77b7e298cf2
* Mark some more functions that are not used outside of their files as static.diego2010-02-181-1/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30632 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix exit_player() usage throughout the codebase.diego2010-02-141-2/+2
| | | | | | | | | | exit_player() was declared with differing parameter types in mplayer.c and mplayer.h. Make the declaration in the .h file match the one in the .c file and adjust all usages of exit_player() throughout the codebase. Also move the exit_player() declaration into mp_core.h next to exit_player_with_rc(). git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30558 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variables, fixes the warnings:diego2010-02-131-2/+0
| | | | | | | | libao2/ao_mpegpes.c:336: warning: unused variable 's' libao2/ao_mpegpes.c:335: warning: unused variable 'i' git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30555 b3059339-0415-0410-9bf9-f77b7e298cf2
* Audio buffer is too large so that it takes too long time to respond to audiokomh2010-02-041-1/+1
| | | | | | | control such as software volume control. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30502 b3059339-0415-0410-9bf9-f77b7e298cf2
* Add OS/2 KAI audio driver supportkomh2010-02-012-0/+335
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30481 b3059339-0415-0410-9bf9-f77b7e298cf2
* 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 th