summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
Diffstat (limited to 'src/client')
-rw-r--r--src/client/snd_mix.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/snd_mix.c b/src/client/snd_mix.c
index 56ef7185..6671fc47 100644
--- a/src/client/snd_mix.c
+++ b/src/client/snd_mix.c
@@ -237,6 +237,10 @@ static void S_PaintChannelFrom16_altivec( channel_t *ch, const sfx_t *sc, int co
short *samples;
float ooff, fdata[2], fdiv, fleftvol, frightvol;
+ if (sc->soundChannels <= 0) {
+ return;
+ }
+
samp = &paintbuffer[ bufferOffset ];
if (ch->doppler) {