aboutsummaryrefslogtreecommitdiffstats
path: root/code/client/snd_openal.c
Commit message (Collapse)AuthorAgeFilesLines
* Fix another issue I didn't know about: cgame does not kill sound loops it ↵thilo2009-10-261-49/+68
| | | | | | startet, just stops sending the entity information for these loops. Changed it so that loops added with AddLoopingsound() are being killed again as soon as the entity to the source is not sent anymore. git-svn-id: svn://svn.icculus.org/quake3/trunk@1709 edf5b092-35ff-0310-97b2-ce42778d08ea
* A few more last fixes that will handle some special casesthilo2009-10-241-8/+22
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1700 edf5b092-35ff-0310-97b2-ce42778d08ea
* Better stop than just pause.thilo2009-10-231-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1699 edf5b092-35ff-0310-97b2-ce42778d08ea
* Don't kill sources out of range, just pause them. Make sure the listener ↵thilo2009-10-231-74/+135
| | | | | | gets the impression sources have been continuing to run in the background. git-svn-id: svn://svn.icculus.org/quake3/trunk@1698 edf5b092-35ff-0310-97b2-ce42778d08ea
* remove redundancythilo2009-10-231-1/+0
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1695 edf5b092-35ff-0310-97b2-ce42778d08ea
* Synchronize looping ambient sounds (#2984)thilo2009-10-231-27/+108
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1694 edf5b092-35ff-0310-97b2-ce42778d08ea
* - Change default openal lib to libopenal.so.1thilo2009-10-131-1/+1
| | | | | | | - USE_OPENAL_DLOPEN=1 now default git-svn-id: svn://svn.icculus.org/quake3/trunk@1664 edf5b092-35ff-0310-97b2-ce42778d08ea
* Improve OpenAL error handling, patch by Ben Millwood. ↵thilo2009-10-131-2/+23
| | | | | | https://bugzilla.icculus.org/show_bug.cgi?id=3776 git-svn-id: svn://svn.icculus.org/quake3/trunk@1663 edf5b092-35ff-0310-97b2-ce42778d08ea
* don't modify s_alDevice and add fallback to let openAL choose the deviceludwig2009-05-081-24/+15
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1543 edf5b092-35ff-0310-97b2-ce42778d08ea
* mark s_alDriver CVAR_LATCHludwig2009-05-081-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1542 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix leaking OpenAL buffers (Amanieu)tma2009-03-151-0/+12
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1510 edf5b092-35ff-0310-97b2-ce42778d08ea
* specify alDevice instead of NULL when asking for for ALC_EXTENSIONSludwig2008-11-021-1/+1
| | | | | | patch by Ben Millwood (#3777) git-svn-id: svn://svn.icculus.org/quake3/trunk@1478 edf5b092-35ff-0310-97b2-ce42778d08ea
* * (bug 3674) Change default for s_alGain from 0.4 to 1.0tma2008-08-081-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1439 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Restrict OpenAL capture support test hack to OS X, where it is required; thistma2008-08-031-6/+17
| | | | | | | fixes a crash on exit with Windows when using OpenAL git-svn-id: svn://svn.icculus.org/quake3/trunk@1433 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Rename voip cvar to cl_voiptma2008-07-071-5/+5
| | | | | | | | | * s/#if USE_VOIP/#ifdef USE_VOIP/ * Add generalised runtime cvar range checking, currently on [sv|cl]_voip, dedicated and a bunch of r_ variables git-svn-id: svn://svn.icculus.org/quake3/trunk@1420 edf5b092-35ff-0310-97b2-ce42778d08ea
* VoIP: Don't hardcode Speex sample rate.icculus2008-06-071-0/+4
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1372 edf5b092-35ff-0310-97b2-ce42778d08ea
* Changed a few VoIP cvars to be latched.icculus2008-06-011-1/+1
| | | | | | | It either doesn't make sense to change these mid-game, or doing so won't work. git-svn-id: svn://svn.icculus.org/quake3/trunk@1351 edf5b092-35ff-0310-97b2-ce42778d08ea
* Initial patch for in-game VoIP support!icculus2008-06-011-46/+174
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@1348 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix a bunch of compile warningstma2008-05-101-13/+25
| | | | | | | | * Only call pkg-config if it exists * Remove cl_consoleHistory from README git-svn-id: svn://svn.icculus.org/quake3/trunk@1342 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Remove work around for a 2 year old OpenAL bug that now actually causes atma2007-11-111-7/+0
| | | | | | | crash on snd_restart git-svn-id: svn://svn.icculus.org/quake3/trunk@1209 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Move the conditional compilation of bg_lib.c from the Makefile to cpp intma2007-09-221-2/+2
| | | | | | | | order to force dependency generation on bg_lib.* * Make testing USE_ defines more consistent git-svn-id: svn://svn.icculus.org/quake3/trunk@1186 edf5b092-35ff-0310-97b2-ce42778d08ea
* Remove cvar s_alMaxSpeakerDistance for the same task can better be achieved ↵thilo2007-03-171-4/+2
| | | | | | with s_alMaxDistance. git-svn-id: svn://svn.icculus.org/quake3/trunk@1051 edf5b092-35ff-0310-97b2-ce42778d08ea
* - Fix loads of format string bugsthilo2007-01-241-6/+4
| | | | | | | - Fix locally looping sounds, thanks to Timbo git-svn-id: svn://svn.icculus.org/quake3/trunk@1037 edf5b092-35ff-0310-97b2-ce42778d08ea
* - Fix two non-C-standard variable declarations.thilo2007-01-071-2/+6
| | | | | | | - Fix function name of vsnprintf for windows systems. git-svn-id: svn://svn.icculus.org/quake3/trunk@1027 edf5b092-35ff-0310-97b2-ce42778d08ea
* - tag more functions with gnu format attributeludwig2006-12-301-1/+1
| | | | | | | - fix format string bugs. still some left git-svn-id: svn://svn.icculus.org/quake3/trunk@1023 edf5b092-35ff-0310-97b2-ce42778d08ea
* There's still a little bug in my recent change...thilo2006-11-261-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@983 edf5b092-35ff-0310-97b2-ce42778d08ea
* - Add input sanitising to various sound playing functions called from MODs.thilo2006-11-251-3/+40
| | | | | | | | This fixes https://bugzilla.icculus.org/show_bug.cgi?id=2836 - Make searching through the knownSfx array a bit more efficient. git-svn-id: svn://svn.icculus.org/quake3/trunk@982 edf5b092-35ff-0310-97b2-ce42778d08ea
* Fix bug in parameter checking. Thanks to Neil Toronto for reporting.thilo2006-11-231-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@979 edf5b092-35ff-0310-97b2-ce42778d08ea
* - Explicitly set distance attenuation model.thilo2006-11-031-64/+133
| | | | | | | - Mute sounds that exceed a certain distance from the listener. git-svn-id: svn://svn.icculus.org/quake3/trunk@957 edf5b092-35ff-0310-97b2-ce42778d08ea
* * (bug 2893) OpenAL was not tracking one-shot sound effects to the entity'stjw2006-10-131-2/+1
| | | | | | | position git-svn-id: svn://svn.icculus.org/quake3/trunk@934 edf5b092-35ff-0310-97b2-ce42778d08ea
* looks like ALCchar is not available on older openal versionsludwig2006-09-051-2/+2
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@890 edf5b092-35ff-0310-97b2-ce42778d08ea
* - Fixed filehandle / filedescriptor leak in S_AL_StartBackgroundTrack ↵thilo2006-08-271-28/+70
| | | | | | | | | introduced in rev. 832 - intro now plays correctly before looping sound. git-svn-id: svn://svn.icculus.org/quake3/trunk@874 edf5b092-35ff-0310-97b2-ce42778d08ea
* - Change available device list to be displayed on sound initialization andthilo2006-08-191-8/+6
| | | | | | | use line feeds as separators. git-svn-id: svn://svn.icculus.org/quake3/trunk@856 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Compiler warning fixtma2006-08-191-2/+3
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@855 edf5b092-35ff-0310-97b2-ce42778d08ea
* - tweak enumeration support, remove win32 dependencythilo2006-08-191-17/+4
| | | | | | | - fix two typos in status message in snd_main.c git-svn-id: svn://svn.icculus.org/quake3/trunk@854 edf5b092-35ff-0310-97b2-ce42778d08ea
* - Add device enumeration support on windows and make "Generic Software" new ↵thilo2006-08-191-0/+75
| | | | | | | | | | default device as that one seems to work more reliably on many platforms. - Add shfolder.lib library to dependencies in MSVC project files - update documentation for OpenAL changes. git-svn-id: svn://svn.icculus.org/quake3/trunk@853 edf5b092-35ff-0310-97b2-ce42778d08ea
* bug 2747tjw2006-08-031-1/+5
| | | | | | | | | | * it turns out Apple's OpenAL only allows for 64 alSource's by default http://opensource.creative.com/pipermail/openal/2005-October/008893.html This was the main cause of the Mac OS X OpenAL probem since we were using 128 as MAX_SRC git-svn-id: svn://svn.icculus.org/quake3/trunk@833 edf5b092-35ff-0310-97b2-ce42778d08ea
* bug 2747tjw2006-08-031-13/+10
| | | | | | | | | | * open music stream in S_AL_StartBackgroundTrack() instead of relying on S_AL_MusicProcess() to open it. This allows S_AL_MusicProcess() to return early when called whenever there is no open music stream to prevent a segfault. git-svn-id: svn://svn.icculus.org/quake3/trunk@832 edf5b092-35ff-0310-97b2-ce42778d08ea
* bug 2723tjw2006-08-021-0/+2
| | | | | | | | | | | | | | * adds a shell script ./make-macosx-ub.sh that builds Mac OS X Universal Binary * fixes Mac OS X x86 VM crashes (-mstackrealign) * adds current working directory to the search path on Mac OS X to make working with .app bundles easier * various tweaks to make ioquake3 build against the 10.2 SDK * changed default OpenAL .dylib location to the path of the one included with the Framework bundled in 10.4 (for USE_OPENAL_DLOPEN) * updated to a Universal libSDL-1.2.0.dylib git-svn-id: svn://svn.icculus.org/quake3/trunk@830 edf5b092-35ff-0310-97b2-ce42778d08ea
* * OpenAL bug fix (from Josh Weisskopf)tma2006-06-171-0/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@810 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Entity sounds on the player entity are now AL_SOURCE_RELATIVEtma2006-02-281-24/+89
| | | | | | | * Thus no need to s_alSpatEntOrigin anymore git-svn-id: svn://svn.icculus.org/quake3/trunk@593 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Sound related bug fixes from Thilo Schulztma2006-02-261-0/+16
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@587 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Change the default for s_alSpatEntOrigin. I need to think of a way to do thetma2006-02-231-1/+1
| | | | | | | same thing without degrading the sound quality or changing the API. git-svn-id: svn://svn.icculus.org/quake3/trunk@583 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix to a woopsietma2006-02-131-1/+1
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@540 edf5b092-35ff-0310-97b2-ce42778d08ea
* * OpenAL now respatializes using the player entity origin instead of the viewtma2006-02-121-5/+15
| | | | | | | | origin by default. The old behaviour is available by setting s_alSpatEntOrigin to 0. git-svn-id: svn://svn.icculus.org/quake3/trunk@539 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Removed (unintentional) C99 codetma2006-02-071-13/+0
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@536 edf5b092-35ff-0310-97b2-ce42778d08ea
* * workaround for msvc compiler bug.maik2006-02-071-0/+14
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@533 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Fix to an OpenAL "bug" involving Team Arenatma2006-01-221-2/+15
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@518 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Added Q_isnan for NaN tests with -ffast-mathtma2006-01-191-9/+6
| | | | | | | * Fixed UT/OpenAL work around git-svn-id: svn://svn.icculus.org/quake3/trunk@510 edf5b092-35ff-0310-97b2-ce42778d08ea
* * Some sloppily coded mods call the Q3 sound API with NaNs -- sanitise thistma2006-01-191-0/+29
| | | | git-svn-id: svn://svn.icculus.org/quake3/trunk@508 edf5b092-35ff-0310-97b2-ce42778d08ea