aboutsummaryrefslogtreecommitdiffstats
path: root/code
diff options
context:
space:
mode:
authorludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-01 17:52:57 +0000
committerludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea>2005-09-01 17:52:57 +0000
commitdaabf6c805d0748529574bb43a94f2f1463c000a (patch)
treec8df82bf056d0e925a15b96556005c7df7457a42 /code
parentc366f724eb6db420f234da8dc71b927d803dbf4c (diff)
downloadioquake3-aero-daabf6c805d0748529574bb43a94f2f1463c000a.tar.gz
ioquake3-aero-daabf6c805d0748529574bb43a94f2f1463c000a.zip
assume a default if sndspeed==0 to stay compatible with the original
code git-svn-id: svn://svn.icculus.org/quake3/trunk@65 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r--code/unix/sdl_snd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/code/unix/sdl_snd.c b/code/unix/sdl_snd.c
index 0479a78..e0cc1d7 100644
--- a/code/unix/sdl_snd.c
+++ b/code/unix/sdl_snd.c
@@ -136,7 +136,7 @@ qboolean SNDDMA_Init(void)
if (!snddevice) {
sndbits = Cvar_Get("sndbits", "16", CVAR_ARCHIVE);
- sndspeed = Cvar_Get("sndspeed", "22050", CVAR_ARCHIVE);
+ sndspeed = Cvar_Get("sndspeed", "0", CVAR_ARCHIVE);
sndchannels = Cvar_Get("sndchannels", "2", CVAR_ARCHIVE);
snddevice = Cvar_Get("snddevice", "/dev/dsp", CVAR_ARCHIVE);
}
@@ -164,6 +164,7 @@ qboolean SNDDMA_Init(void)
tmp = 16;
desired.freq = (int) sndspeed->value;
+ if(!desired.freq) desired.freq = 22050;
desired.format = ((tmp == 16) ? AUDIO_S16SYS : AUDIO_U8);
// I dunno if this is the best idea, but I'll give it a try...