]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_alsa_0_5.c
fix for repeated mode switchs losing keyboard/mouse focus
[xonotic/darkplaces.git] / snd_alsa_0_5.c
index cf48cf40c65afe6673365b464e3d4cd1696b3dd8..082fbe5033d1a633bcd84f47aa30084b069294d3 100644 (file)
@@ -1,7 +1,7 @@
 /*
-       snd_alsa.c
+       snd_alsa_0_5.c
 
-       (description)
+       Support for ALSA 0.5, the old stable version of ALSA.
 
        Copyright (C) 1999,2000  contributors of the QuakeForge project
        Please see the file "AUTHORS" for a list of contributors
@@ -214,9 +214,6 @@ qboolean SNDDMA_Init(void)
                frag_size/=2;
        }
 
-//     err_msg="audio flush";
-//     if ((rc=snd_pcm_channel_flush(pcm_handle, SND_PCM_CHANNEL_PLAYBACK))<0)
-//             goto error;
        err_msg="audio munmap";
        if ((rc=snd_pcm_munmap(pcm_handle, SND_PCM_CHANNEL_PLAYBACK))<0)
                goto error;
@@ -233,9 +230,6 @@ qboolean SNDDMA_Init(void)
        params.buf.block.frag_size=frag_size;
        params.buf.block.frags_min=1;
        params.buf.block.frags_max=-1;
-//     err_msg="audio flush";
-//     if ((rc=snd_pcm_channel_flush(pcm_handle, SND_PCM_CHANNEL_PLAYBACK))<0)
-//             goto error;
        err_msg="audio params";
        if ((rc=snd_pcm_channel_params(pcm_handle, &params))<0)
                goto error;
@@ -339,3 +333,19 @@ void SNDDMA_Submit(void)
        }
 }
 
+void *S_LockBuffer(void)
+{
+       return shm->buffer;
+}
+
+void S_UnlockBuffer(void)
+{
+}
+
+void S_Open(void)
+{
+}
+
+void S_Close(void)
+{
+}