]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_mix.c
changed surface->mesh to surface->groupmesh and added num_firsttriangle and num_first...
[xonotic/darkplaces.git] / snd_mix.c
index 319eebeb5ef4c70e2dc2ffea7b6ad12fa7a2eafc..2f1a7d43d200c9d3e70464edbd3096c844993915 100644 (file)
--- a/snd_mix.c
+++ b/snd_mix.c
@@ -45,11 +45,11 @@ void S_CaptureAVISound(portable_samplepair_t *buf, size_t length)
        // write the sound buffer as little endian 16bit interleaved stereo
        for(i = 0;i < length;i++)
        {
-               n = buf[i].left >> 2; // quiet enough to prevent clipping most of the time
+               n = buf[i].left;
                n = bound(-32768, n, 32767);
                out[i*4+0] = n & 0xFF;
                out[i*4+1] = (n >> 8) & 0xFF;
-               n = buf[i].right >> 2; // quiet enough to prevent clipping most of the time
+               n = buf[i].right;
                n = bound(-32768, n, 32767);
                out[i*4+2] = n & 0xFF;
                out[i*4+3] = (n >> 8) & 0xFF;