]> icculus.org git repositories - divverent/darkplaces.git/commit
- the Linux sound modules (ALSA and OSS) are now write-based, instead of
authormolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 4 Jun 2006 10:57:24 +0000 (10:57 +0000)
committermolivier <molivier@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 4 Jun 2006 10:57:24 +0000 (10:57 +0000)
commitda29a8beeb35293e2fd38b51883c91b5cf4cf4ad
tree88fa4e0b73e97191fab65846c3ee2b5d543d586a
parentc57a2ebbdf87d3d311b14eb75be65fbdf321e67c
- the Linux sound modules (ALSA and OSS) are now write-based, instead of
mmap-based. It should fix the problems with inboard sound cards
- added 3 cvars controlling the sound output format: snd_speed,
snd_channels, and snd_width (default values: 48000, 2, and 2
respectively). They're saved in the config file.
- the checks for command line options and environment variables
modifying the sound output format are now common to all modules. The
command line options supported are: -sndmono, -sndstereo, -sndquad,
-sndspeed, and -sndbits. The environment variables supported are:
QUAKE_SOUND_CHANNELS, QUAKE_SOUND_SPEED, and QUAKE_SOUND_SAMPLEBITS.
- added a (still dumb) function to figure out a better sound format when
the initialization of the sound card failed
- sound modules can now suggest a sound format if the initialization of
the sound card failed
- you can now do a "snd_restart" while having modified snd_width and/or
snd_channel. Doing a snd_restart with a modified snd_speed isn't yet
supported, it will fall back to the previous speed
- The WGL video module was blocking the sound output when the
application window lost the focus. Now, this code is shared and the AGL,
GLX and SDL video modules implement such a mecanism
- A lot of minor fixes, changes, factorizations and rewrites all over
the sound engine code and its modules
- added CeilPowerOf2() in the math library
- fixed BSDmakefile for NetBSD

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@6415 d7cf8633-e32d-0410-b094-e92efae38249
24 files changed:
BSDmakefile
mathlib.c
mathlib.h
snd_alsa.c
snd_bsd.c
snd_coreaudio.c
snd_main.c
snd_main.h
snd_mem.c
snd_mix.c
snd_null.c
snd_ogg.c
snd_ogg.h
snd_oss.c
snd_sdl.c
snd_wav.c
snd_wav.h
snd_win.c
sound.h
sys_win.c
vid_agl.c
vid_glx.c
vid_sdl.c
vid_wgl.c