]> 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 b230bf522aa53c0461b0982436fad00496996390..30237fc34d37ff370d0bb0d072fa4272737f3253 100644 (file)
@@ -282,7 +282,7 @@ int SNDDMA_GetDMAPos (void)
        offset *= shm->format.channels;
        nframes *= shm->format.channels;
        shm->samplepos = offset;
        offset *= shm->format.channels;
        nframes *= shm->format.channels;
        shm->samplepos = offset;
-       shm->buffer = areas->addr;
+       shm->buffer = (qbyte *)areas->addr;
        return shm->samplepos;
 }
 
        return shm->samplepos;
 }