]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_alsa_0_9.c
moved state update from R_Mesh_Render to R_Mesh_Draw_GetBuffer
[xonotic/darkplaces.git] / snd_alsa_0_9.c
index 5cb3092e204e45018e8d927327ebbf86f72691e3..0e05ef88c2ea0bb0447ae9d8945641bd6c57d169 100644 (file)
@@ -1,7 +1,7 @@
 /*
        snd_alsa_0_9.c
 
-       (description)
+       Support for ALSA 0.9 sound driver (cvs development version)
 
        Copyright (C) 1999,2000  contributors of the QuakeForge project
        Please see the file "AUTHORS" for a list of contributors
@@ -35,9 +35,8 @@
 
 #include <sys/asoundlib.h>
 
-#include "qtypes.h"
+#include "quakedef.h"
 #include "sound.h"
-#include "qargs.h"
 #include "console.h"
 
 static int snd_inited;
@@ -219,7 +218,7 @@ qboolean SNDDMA_Init(void)
 }
 
 static inline int
-get_hw_ptr()
+get_hw_ptr(void)
 {
        size_t app_ptr;
        snd_pcm_sframes_t delay;
@@ -306,3 +305,12 @@ void SNDDMA_Submit(void)
        }
 }
 
+void *S_LockBuffer(void)
+{
+       return shm->buffer;
+}
+
+void S_UnlockBuffer(void)
+{
+}
+