summaryrefslogtreecommitdiffstats
path: root/libao2/ao_openal.c
Commit message (Collapse)AuthorAgeFilesLines
* audio: restore volume setting after AO reinit if neededUoti Urpala2012-04-111-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | MPlayer volume control was originally implemented with the assumption that it controls a system-wide volume setting which keeps its value even if a process closes and reopens the audio device. However, this is not actually true for --softvol mode or some audio output APIs that only consider volume as a per-client setting for software mixing. This could have annoying results, as the volume would be reset to a default value if the AO was closed and reopened, for example whem moving to a new file or crossing ordered chapter boundaries. Add code to set the previous volume again after audio reinitialization if the current audio chain is known to behave this way (softvol active or the AO driver is known to not keep persistent volume externally). This also avoids an inconsistency with the mute flag. The frontend assumed the mute status is persistent across file changes, but it could be similarly lost. The audio drivers that are assumed to not keep persistent volume are: coreaudio, dsound, esd, nas, openal, sdl. None of these changes have been tested. I'm guessing that ESD and NAS do per-connection non-persistent volume settings. Partially based on code by wm4.
* Delete things related to old translation systemUoti Urpala2010-03-101-1/+0
| | | | | Remove the help/ subdirectory, configure code to create toplevel help_mp.h, and all the '#include "help_mp.h"' lines from .c files.
* Merge svn changes up to r29644Uoti Urpala2009-09-041-1/+1
|\
| * The suboption parser now takes a const options list, so mark them all const.reimar2009-09-021-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29628 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Merge svn changes up to r29544Uoti Urpala2009-08-221-2/+3
|\|
| * 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
| * whitespace cosmetics: Remove all trailing whitespace.diego2009-05-131-1/+1
| | | | | | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@29305 b3059339-0415-0410-9bf9-f77b7e298cf2
* | Remove trailing whitespace from most filesUoti Urpala2009-07-071-2/+1
|/
* Make ao_info_t structs const.reimar2009-03-061-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@28858 b3059339-0415-0410-9bf9-f77b7e298cf2
* Replace casual GPL notices by proper license headers.diego2008-09-071-5/+18
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@27541 b3059339-0415-0410-9bf9-f77b7e298cf2
* Remove unused variable.reimar2008-01-301-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25942 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix get_space calculation to always leave some space, esp. for the currently ↵reimar2008-01-301-1/+3
| | | | | | playing buffer. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25941 b3059339-0415-0410-9bf9-f77b7e298cf2
* Change code to also work with different outburst sizesreimar2008-01-301-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25940 b3059339-0415-0410-9bf9-f77b7e298cf2
* Reduce number of UnqueueBuffer callsreimar2008-01-301-3/+9
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25939 b3059339-0415-0410-9bf9-f77b7e298cf2
* alSourceRewindv seems to be broken in particular in Creatives ↵reimar2008-01-301-1/+1
| | | | | | | | Windows-Implementation, use alSourceStopv instead. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25938 b3059339-0415-0410-9bf9-f77b7e298cf2
* ISO8859-1 --> UTF-8diego2007-07-091-2/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23754 b3059339-0415-0410-9bf9-f77b7e298cf2
* OpenAL volume controlreimar2006-12-101-0/+14
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21586 b3059339-0415-0410-9bf9-f77b7e298cf2
* Support OpenAL headers in OpenAL/ instead of AL/ and OpenAL on MacOSX in ↵reimar2006-12-101-1/+7
| | | | | | general. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21572 b3059339-0415-0410-9bf9-f77b7e298cf2
* Fix a compiler warningreimar2006-12-101-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21566 b3059339-0415-0410-9bf9-f77b7e298cf2
* Set frequency and correct frequency gettingreimar2006-12-101-4/+7
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21565 b3059339-0415-0410-9bf9-f77b7e298cf2
* Improve OpenAL speaker positions a bit.reimar2006-12-091-5/+6
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21546 b3059339-0415-0410-9bf9-f77b7e298cf2
* Half-properly set up OpenAL position stuffreimar2006-12-091-2/+13
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@21543 b3059339-0415-0410-9bf9-f77b7e298cf2
* rm unnecesary casts from void* - part 4reynaldo2006-07-031-1/+1
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@18890 b3059339-0415-0410-9bf9-f77b7e298cf2
* include stdlib.h and stdio.h, they tend to be useful :-)reimar2006-02-181-0/+2
| | | | git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17645 b3059339-0415-0410-9bf9-f77b7e298cf2
* OpenAL audio support, actual output is mono-only (no positioning yet).reimar2006-02-161-0/+196
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17634 b3059339-0415-0410-9bf9-f77b7e298cf2