]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_oss.c
now uses a fragment texture for the video (massive speedup)
[xonotic/darkplaces.git] / snd_oss.c
index 4579e40d640c2352da25e4cdef47268c28224468..61e8d0eb64898110ecbafec99d93aaa04a2cbd3c 100644 (file)
--- a/snd_oss.c
+++ b/snd_oss.c
@@ -239,8 +239,6 @@ int SNDDMA_GetDMAPos(void)
                snd_inited = 0;
                return 0;
        }
-//     shm->samplepos = (count.bytes / (shm->samplebits / 8)) & (shm->samples-1);
-//     fprintf(stderr, "%d    \r", count.ptr);
        shm->samplepos = count.ptr / (shm->samplebits / 8);
 
        return shm->samplepos;
@@ -267,3 +265,11 @@ void SNDDMA_Submit(void)
 {
 }
 
+void *S_LockBuffer(void)
+{
+       return shm->buffer;
+}
+
+void S_UnlockBuffer(void)
+{
+}