quakespasm/Quake
Ozkan Sezer bcef8e85f0 backports from uhexen2 source, preparing for streaming music support:
* snd_mix.c: Increased PAINTBUFFER_SIZE from 512 to 2048.
* snd_mix.c: snd_vol is static now. it is calculated in S_PaintChannels and
  only used in SND_PaintChannelFrom16. all its other uses are removed from
  Snd_WriteLinearBlastStereo16, S_TransferStereo16, S_TransferPaintBuffer.
  The way it was, the sound volume was applied to the whole final contents
  of the paint buffer, but with this new quake2+ way we can add raw samples
  to the paint buffer with its own volume, such as bgmvolume. However, this
  makes the snd_scaletable to be recalculated everytime the sfxvolume is,
  changed, therefore it is adjusted that way to incorporate sfxvolume.
* snd_mix.c: In S_PaintChannels, check against s_rawend and copy from the
  streaming sound source if necessary.
* snd_dma.c: Added old_volume to detect sfxvolume changes. Made S_Update to
  compare it to sfxvolume.value and call SND_InitScaletable() if it changed.
* snd_dma.c: Add new globals s_rawsamples and s_rawend. Reset s_rawend to 0
  in S_ClearBuffer. Add new function S_RawSamples, adapted from quake2 with
  its 8 bit stereo playback fixed.
* snd_dma.c (S_FileExtension): Add new function which returns the given
  sound file's extension including the dot, or NULL.
* q_sound.h: Add new macro MAX_RAW_SAMPLES, defined as 8192. Add externs
  for new globals s_rawsamples and s_rawend. Add prototype for the new
  S_RawSamples and S_FileExtension functions.


git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@355 af15c1b1-3010-417e-b628-4374ebc0bcbd
2010-12-30 17:11:28 +00:00
..
anorm_dots.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
anorms.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
arch_def.h * arch_def.h, net_sys.h, wsaerror.h: New headers, adapted from uhexen2. 2010-06-21 10:55:21 +00:00
bspfile.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
cd_null.c CDAudio_Next() and CDAudio_Prev() aren't public to the engine and do not 2010-08-29 16:02:55 +00:00
cd_sdl.c Minor cd_sdl.c cleanups from uhexen2. Reorganized cdaudio volume 2010-12-30 14:55:25 +00:00
cdaudio.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
chase.c * renamed Length() to VectorLength() for consistency with its friends. 2010-08-01 19:22:46 +00:00
cl_demo.c cl_demo.c (CL_PlayDemo_f): get rid of the menu and/or console when starting a demo. 2010-02-16 09:55:13 +00:00
cl_input.c const correctness changes. 2010-08-29 02:22:55 +00:00
cl_main.c some more constifications and fixes for deprecated conversion 2010-08-29 12:04:19 +00:00
cl_parse.c const correctness changes. 2010-08-29 02:22:55 +00:00
cl_tent.c gl_rmain.c, gl_rmisc.c, cl_tent.c, quakedef.h: removed leftovers from GLTEST. 2010-06-01 10:55:40 +00:00
client.h remove the defunct cls.mapstring 2010-08-30 02:15:22 +00:00
cmd.c cmd.c: Fix the unalias command. 2010-10-24 14:15:27 +00:00
cmd.h const correctness changes. 2010-08-29 02:22:55 +00:00
common.c backports from uHexen2 tree: 2010-12-30 16:50:15 +00:00
common.h backports from uHexen2 tree: 2010-12-30 16:50:15 +00:00
conback.c conback.c, conback.h: added new QuakeSpasm conback data. 2010-02-18 16:45:28 +00:00
conback.h conback.c, conback.h: added new QuakeSpasm conback data. 2010-02-18 16:45:28 +00:00
console.c * console.c, sbar.c: fixed a few format string issues. 2010-09-20 08:27:20 +00:00
console.h const correctness changes. 2010-08-29 02:22:55 +00:00
crc.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
crc.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
cvar.c const correctness changes. 2010-08-29 02:22:55 +00:00
cvar.h const correctness changes. 2010-08-29 02:22:55 +00:00
d_ifacea.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
draw.h const correctness changes. 2010-08-29 02:22:55 +00:00
gl_draw.c const correctness changes. 2010-08-29 02:22:55 +00:00
gl_fog.c const correctness changes. 2010-08-29 02:22:55 +00:00
gl_mesh.c gl_mesh.c (BuildTris): worked around a type-punned pointer. adapted from quakeforge. 2010-08-01 21:11:16 +00:00
gl_model.c const correctness changes. 2010-08-29 02:22:55 +00:00
gl_model.h const correctness changes. 2010-08-29 02:22:55 +00:00
gl_refrag.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
gl_rlight.c * renamed Length() to VectorLength() for consistency with its friends. 2010-08-01 19:22:46 +00:00
gl_rmain.c gl_rmain.c, gl_rmisc.c, cl_tent.c, quakedef.h: removed leftovers from GLTEST. 2010-06-01 10:55:40 +00:00
gl_rmisc.c gl_rmain.c, gl_rmisc.c, cl_tent.c, quakedef.h: removed leftovers from GLTEST. 2010-06-01 10:55:40 +00:00
gl_screen.c const correctness changes. 2010-08-29 02:22:55 +00:00
gl_sky.c const correctness changes. 2010-08-29 02:22:55 +00:00
gl_texmgr.c const correctness changes. 2010-08-29 02:22:55 +00:00
gl_texmgr.h const correctness changes. 2010-08-29 02:22:55 +00:00
gl_vidnt.c gl_vidnt.c, gl_vidsdl.c: Reformatted GL_CheckExtensions for better readability, 2010-12-26 22:10:44 +00:00
gl_vidsdl.c gl_vidnt.c, gl_vidsdl.c: Reformatted GL_CheckExtensions for better readability, 2010-12-26 22:10:44 +00:00
gl_warp.c host_cmd.c, console.c, gl_draw.c, image.c, gl_model.c, r_sprite.c, cl_parse.c, 2010-05-31 07:42:36 +00:00
gl_warp_sin.h initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
glquake.h const correctness changes. 2010-08-29 02:22:55 +00:00
host.c more max_edicts stuff (from Sander) 2010-10-24 07:57:46 +00:00
host_cmd.c host_cmd.c: minor tidy up, nothing serious. 2010-08-31 12:15:38 +00:00
image.c host_cmd.c, console.c, gl_draw.c, image.c, gl_model.c, r_sprite.c, cl_parse.c, 2010-05-31 07:42:36 +00:00
image.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
in_sdl.c more fixes for deprecated conversion from string constant to char*: 2010-08-29 12:55:41 +00:00
input.h * input.h: Removed the SDL_MAJOR_VERSION guards around BuildKeyMaps() and 2010-06-19 22:45:18 +00:00
keys.c const correctness changes. 2010-08-29 02:22:55 +00:00
keys.h const correctness changes. 2010-08-29 02:22:55 +00:00
main_sdl.c main_sdl.c: removed dedicated setup TODO notes. added a new TODO note about 2010-08-24 09:11:57 +00:00
Makefile makefile comment tweaks 2010-09-01 06:10:21 +00:00
Makefile.darwin makefile comment tweaks 2010-09-01 06:10:21 +00:00
Makefile.w32 makefile comment tweaks 2010-09-01 06:10:21 +00:00
Makefile.w64 makefile comment tweaks 2010-09-01 06:10:21 +00:00
mathlib.c added q_stdinc.h, adapted from uhexen2, to tidy up several includes and 2010-08-14 20:55:39 +00:00
mathlib.h added q_stdinc.h, adapted from uhexen2, to tidy up several includes and 2010-08-14 20:55:39 +00:00
menu.c menu.c: restore the screen size menu item that was removed in rev. 125. 2010-10-29 13:03:04 +00:00
menu.h const correctness changes. 2010-08-29 02:22:55 +00:00
modelgen.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
net.h const correctness changes. 2010-08-29 02:22:55 +00:00
net_bsd.c added q_stdinc.h, adapted from uhexen2, to tidy up several includes and 2010-08-14 20:55:39 +00:00
net_defs.h const correctness changes. 2010-08-29 02:22:55 +00:00
net_dgrm.c more fixes for deprecated conversion from string constant to char*: 2010-08-29 12:55:41 +00:00
net_dgrm.h const correctness changes. 2010-08-29 02:22:55 +00:00
net_loop.c const correctness changes. 2010-08-29 02:22:55 +00:00
net_loop.h const correctness changes. 2010-08-29 02:22:55 +00:00
net_main.c const correctness changes. 2010-08-29 02:22:55 +00:00
net_sdl.c added q_stdinc.h, adapted from uhexen2, to tidy up several includes and 2010-08-14 20:55:39 +00:00
net_sdlnet.c const correctness changes. 2010-08-29 02:22:55 +00:00
net_sdlnet.h const correctness changes. 2010-08-29 02:22:55 +00:00
net_sys.h added q_stdinc.h, adapted from uhexen2, to tidy up several includes and 2010-08-14 20:55:39 +00:00
net_udp.c const correctness changes. 2010-08-29 02:22:55 +00:00
net_udp.h const correctness changes. 2010-08-29 02:22:55 +00:00
net_win.c added q_stdinc.h, adapted from uhexen2, to tidy up several includes and 2010-08-14 20:55:39 +00:00
net_wins.c const correctness changes. 2010-08-29 02:22:55 +00:00
net_wins.h const correctness changes. 2010-08-29 02:22:55 +00:00
net_wipx.c const correctness changes. 2010-08-29 02:22:55 +00:00
net_wipx.h const correctness changes. 2010-08-29 02:22:55 +00:00
pl_linux.c Reorganize files for platform-specific code: 2010-06-22 11:01:24 +00:00
pl_osx.m Reorganize files for platform-specific code: 2010-06-22 11:01:24 +00:00
pl_win.c Reorganize files for platform-specific code: 2010-06-22 11:01:24 +00:00
platform.h Constified Con_DebugLog, Con_Print, Con_Printf, Con_Warning, Con_DPrintf, 2010-04-26 16:30:40 +00:00
pr_cmds.c const correctness changes. 2010-08-29 02:22:55 +00:00
pr_comp.h pr_comp.h: fixed a harmless typo with DEF_SAVEGLOBAL 2010-08-29 12:27:17 +00:00
pr_edict.c pr_edict.c (PR_LoadProgs): silenced a minor compiler warning after the const changes. 2010-08-29 17:50:20 +00:00
pr_exec.c replaced all usess of vsprintf by q_vsnprintf 2010-08-31 16:57:12 +00:00
progdefs.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
progdefs.q1 initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
progs.h const correctness changes. 2010-08-29 02:22:55 +00:00
protocol.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
q_sound.h backports from uhexen2 source, preparing for streaming music support: 2010-12-30 17:11:28 +00:00
q_stdinc.h added q_stdinc.h, adapted from uhexen2, to tidy up several includes and 2010-08-14 20:55:39 +00:00
qs_bmp.h updated to Steven's new icon. 2010-04-24 12:55:10 +00:00
quakedef.h renamed sound.h to q_sound.h 2010-12-30 14:30:52 +00:00
r_alias.c * renamed Length() to VectorLength() for consistency with its friends. 2010-08-01 19:22:46 +00:00
r_brush.c host_cmd.c, console.c, gl_draw.c, image.c, gl_model.c, r_sprite.c, cl_parse.c, 2010-05-31 07:42:36 +00:00
r_part.c 64 bit compatibility effort, 2/nn: type correctness work in common.h, 2010-02-16 21:26:11 +00:00
r_sprite.c -Wshadow fixes: 2010-06-03 19:03:31 +00:00
r_world.c 64 bit compatibility effort, 2/nn: type correctness work in common.h, 2010-02-16 21:26:11 +00:00
render.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
resource.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
sbar.c * console.c, sbar.c: fixed a few format string issues. 2010-09-20 08:27:20 +00:00
sbar.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
screen.h const correctness changes. 2010-08-29 02:22:55 +00:00
server.h const correctness changes. 2010-08-29 02:22:55 +00:00
snd_dma.c backports from uhexen2 source, preparing for streaming music support: 2010-12-30 17:11:28 +00:00
snd_mem.c snd_mem.c updates from uhexen2 : 2010-12-30 14:39:12 +00:00
snd_mix.c backports from uhexen2 source, preparing for streaming music support: 2010-12-30 17:11:28 +00:00
snd_sdl.c snd_dma.c: added SNDDMA_LockBuffer() as a new API, needed for, well, proper buffer 2010-02-15 23:45:06 +00:00
spritegn.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
sv_main.c * sv_main.c (SV_WriteEntitiesToClient): the protocol check must be against 2010-11-23 06:48:02 +00:00
sv_move.c initial import of SDL port of Fitzquake-0.85 / 20090510 sources. 2010-02-15 23:26:55 +00:00
sv_phys.c host_cmd.c, console.c, gl_draw.c, image.c, gl_model.c, r_sprite.c, cl_parse.c, 2010-05-31 07:42:36 +00:00
sv_user.c const correctness changes. 2010-08-29 02:22:55 +00:00
sys.h const correctness changes. 2010-08-29 02:22:55 +00:00
sys_sdl_unix.c replaced all usess of vsprintf by q_vsnprintf 2010-08-31 16:57:12 +00:00
sys_sdl_win.c added windows version detection back from original sources 2010-12-30 17:00:19 +00:00
vid.h Some more tidy-up and minor fixing in net stuff. Largely trivial. Also 2010-06-20 10:03:05 +00:00
view.c * renamed Length() to VectorLength() for consistency with its friends. 2010-08-01 19:22:46 +00:00
view.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
wad.c const correctness changes. 2010-08-29 02:22:55 +00:00
wad.h const correctness changes. 2010-08-29 02:22:55 +00:00
winquake.h added windows version detection back from original sources 2010-12-30 17:00:19 +00:00
world.c chase.c, cl_input.c, cl_parse.c, client.h, common.c, common.h, console.h, 2010-02-16 12:01:07 +00:00
world.h bspfile.h, cdaudio.h, client.h, cmd.h, common.h, console.h, crc.h, cvar.h, 2010-02-21 00:01:08 +00:00
wsaerror.h * arch_def.h, net_sys.h, wsaerror.h: New headers, adapted from uhexen2. 2010-06-21 10:55:21 +00:00
zone.c increased default zone memory size to 384kb 2010-10-11 18:06:11 +00:00
zone.h const correctness changes. 2010-08-29 02:22:55 +00:00