Commit graph

89 commits

Author SHA1 Message Date
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
Tim Angus
40a5ee007f * Sound related bug fixes from Thilo Schulz 2006-02-26 18:47:39 +00:00
Tim Angus
0e0aac2cb6 * Change the default for s_alSpatEntOrigin. I need to think of a way to do the
same thing without degrading the sound quality or changing the API.
2006-02-23 20:43:34 +00:00
Tim Angus
26b4ed2f7d * Fix to a woopsie 2006-02-13 18:17:08 +00:00
Tim Angus
932ca8027c * OpenAL now respatializes using the player entity origin instead of the view
origin by default. The old behaviour is available by setting
  s_alSpatEntOrigin to 0.
2006-02-12 10:43:37 +00:00
Tim Angus
ef19ccd56f * Removed (unintentional) C99 code 2006-02-07 18:36:17 +00:00
Maik
602743a25b * workaround for msvc compiler bug. 2006-02-07 12:26:53 +00:00
Tim Angus
704c151eb1 * Fix to an OpenAL "bug" involving Team Arena 2006-01-22 21:09:55 +00:00
Tim Angus
58c8175024 * Added Q_isnan for NaN tests with -ffast-math
* Fixed UT/OpenAL work around
2006-01-19 20:28:12 +00:00
Tim Angus
50a10f2690 * Some sloppily coded mods call the Q3 sound API with NaNs -- sanitise this 2006-01-19 17:25:55 +00:00
Tim Angus
d4bd2fd737 * Change defaults for s_alRolloff and s_alMinDistance 2006-01-15 15:45:12 +00:00
Tim Angus
6c6396a54f * Increase default for s_alSources to 96
* Source allocation warning on looping sounds demoted to developer only
2005-12-11 21:14:45 +00:00
Tim Angus
e67d270f2a * Same as last revision, but I didn't forget to save this time 2005-12-03 16:36:45 +00:00
Tim Angus
5cc1fb1c05 * Improved the robustity^Wrobustosity^Wrobustness of the OpenAL music and raw
stream systems
* Implemented S_AL_BufferEvict for more graceful behaviour when OpenAL runs
  out of memory
2005-12-03 00:19:27 +00:00
Tim Angus
0f8c177cf3 * Fix to an OpenAL "bug" 2005-12-02 00:14:24 +00:00
Tim Angus
3161a34a4f * Fixed bug where if two looping sounds were added to a single entity they
would fight for a source and you'd get a horrible distorted sound that was
  each of the two sounds interleaved
* Changed the default of s_alPrecache to 1 -- having it off seems to cause
  problems for some and it doesn't actually improve things much
* Changed a few of the variable names in snd_openal.c to be more sane
2005-12-01 18:22:42 +00:00
Tim Angus
ae39051f1e * Support RIFF files with zero length data chunks (yes they exist, and yes,
they're legal)
* Colourise the OpenAL warnings so they're somewhat more obvious
2005-11-30 01:57:53 +00:00
Tim Angus
382c6adb54 * Disable ccache by default. If you want it, add USE_CCACHE=1 to Makefile.local
* Remove -gfull from linux section in Makefile -- it's darwin only
* Cast away some warnings that surfaced from using "new" AL headers
* Various whitespace and consistency fixes
2005-11-26 15:01:28 +00:00
Ludwig Nussel
108c051345 make internal functions static 2005-11-19 14:53:46 +00:00
Ludwig Nussel
17719e0c61 soname is libopenal.so.0 2005-11-13 21:01:07 +00:00
Tim Angus
84c4f21082 * OpenAL support, from BlackAura aka Stuart Dalton <badcdev@gmail.com>
+ An abstract codec system, simplifying support for new formats
  + Changes versus BlackAura's patch:
    o Consolidated the OpenAL parts into one file
    o Changed the function naming scheme to more closely resemble Q3
    o Changed the interface to fall back on the "base" sound system
      if loading OpenAL fails
  + This is enabled on Linux and MinGW for now, but should work on the
    other *nixs with appropriate additions to the Makefile
  + NOT enabled on OS X or MSVC Windows builds
  + Probably breaks the Windows build again
* Retabulated sdl_snd.c and made the messages less verbose since
  there do not seem to be many having problems with SDL sound now
2005-11-13 18:58:14 +00:00