Commit Graph

70 Commits

Author SHA1 Message Date
Thilo Schulz bce3848523 Make buffers for device lists a bit longer. Just in case. 2011-03-11 13:53:22 +00:00
Thilo Schulz a3def2744f - Fix a compiler warning
- Fix the detection of the enumeration extensions
- Fix default device for s_alInputDevice
- Adjust formatting of S_AL_Info output
2011-03-09 23:34:15 +00:00
Thilo Schulz 7ca1dc6f8b - I accidentally committed patch by slacker from (#4915) in r1916. Patch adds input device selection support
- Add check for ALC_ENUMERATE_ALL_EXT before using ALC_ALL_DEVICES_SPECIFIER in device enumeration
- Patch readme for new cvars by Zack Middleton
2011-03-09 12:59:25 +00:00
Thilo Schulz 8c3f320504 (#3767) Some protection from malicious qvms - patches and ideas by Amanieu d'Antras and Ben Millwood 2011-03-08 01:39:34 +00:00
Zachary Slater 275d3b45b5 Patch from /dev/humancontroller (thx) 2011-01-27 07:00:35 +00:00
Thilo Schulz eb2860f756 Fix "unhandles OpenAL error", and sound fallback behaviour for model files. Thanks Ansa89 for reporting, and Zack Middleton for the patch. 2010-08-29 18:11:15 +00:00
Thilo Schulz 2a0812bc06 Mute sounds with 0 volume when game is minimized/unfocused instead of Stopping all sounds. Fixes (#4336) 2009-11-10 01:08:15 +00:00
Thilo Schulz e345f9f81f New batch of fixes for the OpenAL part:
- Don't play sources outside the listening range (Thanks Kpaxian for bringing this to my attention)                                                         
 - Handle previously unhandled errors for old OpenAL sample implementation which does not support AL_SEC_OFFSET (sounds won't be synchronized then),
   thanks to Tequila from SmokingGuns for reporting this.
2009-10-27 11:13:33 +00:00
Thilo Schulz 0ecfcfa872 Make not playing loop sources weaker in priority, so if we have reached the maximum number of sources, inaudible loops are removed first. 2009-10-26 23:20:05 +00:00
Thilo Schulz 0adae90465 Fix another issue I didn't know about: cgame does not kill sound loops it 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. 2009-10-26 05:02:18 +00:00
Thilo Schulz 3c501df298 A few more last fixes that will handle some special cases 2009-10-24 08:33:12 +00:00
Thilo Schulz 1ea420e8a8 Better stop than just pause. 2009-10-23 23:51:00 +00:00
Thilo Schulz 898f1ed2f7 Don't kill sources out of range, just pause them. Make sure the listener gets the impression sources have been continuing to run in the background. 2009-10-23 23:32:52 +00:00
Thilo Schulz 465c6101e0 remove redundancy 2009-10-23 12:30:00 +00:00
Thilo Schulz d12751f62b Synchronize looping ambient sounds (#2984) 2009-10-23 12:18:49 +00:00
Thilo Schulz 290f51e353 - Change default openal lib to libopenal.so.1
- USE_OPENAL_DLOPEN=1 now default
2009-10-13 15:39:39 +00:00
Thilo Schulz fc539dc46a Improve OpenAL error handling, patch by Ben Millwood. https://bugzilla.icculus.org/show_bug.cgi?id=3776 2009-10-13 15:23:17 +00:00
Ludwig Nussel b35c63f37a don't modify s_alDevice and add fallback to let openAL choose the device 2009-05-08 09:13:06 +00:00
Ludwig Nussel de19303320 mark s_alDriver CVAR_LATCH 2009-05-08 09:13:03 +00:00
Tim Angus 53adde9fb2 * Fix leaking OpenAL buffers (Amanieu) 2009-03-15 12:39:53 +00:00
Ludwig Nussel 5a3eda3485 specify alDevice instead of NULL when asking for for ALC_EXTENSIONS
patch by Ben Millwood (#3777)
2008-11-02 17:32:25 +00:00
Tim Angus 2cf5052786 * (bug 3674) Change default for s_alGain from 0.4 to 1.0 2008-08-08 18:27:06 +00:00
Tim Angus d13269c5bb * Restrict OpenAL capture support test hack to OS X, where it is required; this
fixes a crash on exit with Windows when using OpenAL
2008-08-03 19:31:42 +00:00
Tim Angus 37d664d4b2 * Rename voip cvar to cl_voip
* 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
2008-07-07 22:31:39 +00:00
Ryan C. Gordon 26c706df15 VoIP: Don't hardcode Speex sample rate. 2008-06-07 14:38:46 +00:00
Ryan C. Gordon b5eaa94d03 Changed a few VoIP cvars to be latched.
It either doesn't make sense to change these mid-game, or doing so won't work.
2008-06-01 18:10:33 +00:00
Ryan C. Gordon 12326a9eac Initial patch for in-game VoIP support! 2008-06-01 07:51:23 +00:00
Tim Angus a857487f9b * Fix a bunch of compile warnings
* Only call pkg-config if it exists
* Remove cl_consoleHistory from README
2008-05-10 18:51:02 +00:00
Tim Angus 25ac1317b1 * Remove work around for a 2 year old OpenAL bug that now actually causes a
crash on snd_restart
2007-11-11 22:15:25 +00:00
Tim Angus 7562caa310 * Move the conditional compilation of bg_lib.c from the Makefile to cpp in
order to force dependency generation on bg_lib.*
* Make testing USE_ defines more consistent
2007-09-22 20:32:11 +00:00
Thilo Schulz 1de9a065bf Remove cvar s_alMaxSpeakerDistance for the same task can better be achieved with s_alMaxDistance. 2007-03-17 15:54:37 +00:00
Thilo Schulz 5dc3b35b49 - Fix loads of format string bugs
- Fix locally looping sounds, thanks to Timbo
2007-01-24 21:23:21 +00:00
Thilo Schulz c1875302c2 - Fix two non-C-standard variable declarations.
- Fix function name of vsnprintf for windows systems.
2007-01-07 16:03:19 +00:00
Ludwig Nussel 8e82c3d605 - tag more functions with gnu format attribute
- fix format string bugs. still some left
2006-12-30 12:32:54 +00:00
Thilo Schulz 4502f863d4 There's still a little bug in my recent change... 2006-11-26 11:12:35 +00:00
Thilo Schulz 26cf8f2987 - Add input sanitising to various sound playing functions called from MODs.
This fixes https://bugzilla.icculus.org/show_bug.cgi?id=2836
- Make searching through the knownSfx array a bit more efficient.
2006-11-25 13:35:23 +00:00
Thilo Schulz d23e7a1521 Fix bug in parameter checking. Thanks to Neil Toronto for reporting. 2006-11-23 11:10:30 +00:00
Thilo Schulz b57a970034 - Explicitly set distance attenuation model.
- Mute sounds that exceed a certain distance from the listener.
2006-11-03 08:22:38 +00:00
Tony J. White = 41add6c01f * (bug 2893) OpenAL was not tracking one-shot sound effects to the entity's
position
2006-10-13 18:58:57 +00:00
Ludwig Nussel cec7660885 looks like ALCchar is not available on older openal versions 2006-09-05 07:05:04 +00:00
Thilo Schulz 57dbc7a79f - Fixed filehandle / filedescriptor leak in S_AL_StartBackgroundTrack introduced in rev. 832
- intro now plays correctly before looping sound.
2006-08-27 15:31:03 +00:00
Thilo Schulz 467917233a - Change available device list to be displayed on sound initialization and
use line feeds as separators.
2006-08-19 22:17:04 +00:00
Tim Angus 4c8c2e5597 * Compiler warning fix 2006-08-19 14:40:24 +00:00
Thilo Schulz b2b17e334e - tweak enumeration support, remove win32 dependency
- fix two typos in status message in snd_main.c
2006-08-19 13:44:10 +00:00
Thilo Schulz 87a3858f9a - Add device enumeration support on windows and make "Generic Software" new 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.
2006-08-19 11:02:20 +00:00
Tony J. White = 0bffb8a8cd bug 2747
* 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
2006-08-03 03:15:24 +00:00
Tony J. White = 0141a4b4b0 bug 2747
* 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.
2006-08-03 02:29:47 +00:00
Tony J. White = 9a6fad9cf1 bug 2723
* 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
2006-08-02 04:01:36 +00:00
Tim Angus d42b87ae87 * OpenAL bug fix (from Josh Weisskopf) 2006-06-17 21:01:57 +00:00
Tim Angus ef4dad1875 * Entity sounds on the player entity are now AL_SOURCE_RELATIVE
* Thus no need to s_alSpatEntOrigin anymore
2006-02-28 21:52:25 +00:00