]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_mix.c
Make connections atomic. Disconnect before trying to connect.
[xonotic/darkplaces.git] / snd_mix.c
index 4ed38a88b633fde65875389fb622340cc3d4b12a..f9748bd6d86504239a7fe139bc9b63481f8ab4aa 100644 (file)
--- a/snd_mix.c
+++ b/snd_mix.c
@@ -128,6 +128,7 @@ static void S_SoftClipPaintBuffer(portable_sampleframe_t *painted_ptr, int nbfra
 static void S_ConvertPaintBuffer(portable_sampleframe_t *painted_ptr, void *rb_ptr, int nbframes, int width, int nchannels)
 {
        int i;
+       float val;
        if (width == 4)  // 32bit float
        {
                float *snd_out = (float*)rb_ptr;