]> git.xonotic.org Git - xonotic/darkplaces.git/commit
Lots of minor fixes and improvements to the sound engine, plus a few more important...
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 13 Oct 2004 07:03:57 +0000 (07:03 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Wed, 13 Oct 2004 07:03:57 +0000 (07:03 +0000)
commitd50445e9045ddea0d49857346597c57c129029e0
tree9ffb684778040771185a530807f8c75b8a18705d
parent76cbbad5e17c26d91b2e751d203ca5f1a7dcc0ae
Lots of minor fixes and improvements to the sound engine, plus a few more important changes:
- moved the internal structures and API into a separate file (snd_main.h)
- added a lock mecanism on SFXs to free them as soon as they're no longer used
- simplified the sound API
- minor fixes and comment changes here and there
- independent sound volume for fake CD tracks
- updated MSVC and Dev-C++ project files accordingly
- removed unused functions
- added a SFX flag to make sure the engine complains at most one time for each missing sound file
- made the SFX list a linked list to remove the hardcoded limit for the number of SFX a client can handle
- changed the way ambient sounds are managed to be more consistent with the new API
- factorized some code
- removed the useless IN_Accumulate in the Win32 specific code
- removed the table for 8bit sound mixing (snd_scaletable)

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4624 d7cf8633-e32d-0410-b094-e92efae38249
26 files changed:
cd_shared.c
cdaudio.h
cl_main.c
cl_parse.c
cl_screen.c
darkplaces.dev
darkplaces.dsp
dpvsimpledecode.c
menu.c
prvm_cmds.c
quakedef.h
snd_alsa.c
snd_bsd.c
snd_dma.c
snd_main.h [new file with mode: 0644]
snd_mem.c
snd_mix.c
snd_null.c
snd_ogg.c
snd_oss.c
snd_sdl.c
snd_wav.c
snd_win.c
sound.h
todo
vid_wgl.c