]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_alsa.c
made darkplaces compile successfully with g++ to test for errors C doesn't care about...
[xonotic/darkplaces.git] / snd_alsa.c
index 67a9ed60c78726ccf73f95c3d0bb7d7d7135a5c9..30237fc34d37ff370d0bb0d072fa4272737f3253 100644 (file)
@@ -29,6 +29,7 @@
 #include <alsa/asoundlib.h>
 
 #include "quakedef.h"
+#include "snd_main.h"
 
 static int                     snd_inited;
 static snd_pcm_uframes_t buffer_size;
@@ -281,7 +282,7 @@ int SNDDMA_GetDMAPos (void)
        offset *= shm->format.channels;
        nframes *= shm->format.channels;
        shm->samplepos = offset;
-       shm->buffer = areas->addr;
+       shm->buffer = (qbyte *)areas->addr;
        return shm->samplepos;
 }