]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_mix.c
First massive rename and move
[xonotic/darkplaces.git] / snd_mix.c
index 4ed38a88b633fde65875389fb622340cc3d4b12a..b718bdcb242b97089c043e803c410766bf42c572 100644 (file)
--- a/snd_mix.c
+++ b/snd_mix.c
@@ -24,11 +24,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 extern cvar_t snd_softclip;
 
 static portable_sampleframe_t paintbuffer[PAINTBUFFER_SIZE];
-static portable_sampleframe_t paintbuffer_unswapped[PAINTBUFFER_SIZE];
 
 extern speakerlayout_t snd_speakerlayout; // for querying the listeners
 
 #ifdef CONFIG_VIDEO_CAPTURE
+static portable_sampleframe_t paintbuffer_unswapped[PAINTBUFFER_SIZE];
+
 static void S_CaptureAVISound(const portable_sampleframe_t *sampleframes, size_t length)
 {
        size_t i;
@@ -128,6 +129,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;