behave properly when using jack but jackd isn't there

This commit is contained in:
Bill Currie 2007-05-21 11:20:36 +00:00 committed by Jeff Teunissen
parent 2becf1d1c1
commit cfb13eac71

View file

@ -144,6 +144,9 @@ SND_ScanChannels (int wait)
channel_t *ch;
int count = 0;
if (!snd_shm->speed)
return;
if (wait) {
Sys_DPrintf ("scanning channels...\n");
do {
@ -591,7 +594,7 @@ SND_StartSound (int entnum, int entchannel, sfx_t *sfx, const vec3_t origin,
channel_t *target_chan, *check;
sfx_t *osfx;
if (!sfx)
if (!sfx || !snd_shm->speed)
return;
// pick a channel to play on
looped = sfx->loopstart != (unsigned) -1;