]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_dma.c
you can now build a darkplaces-dedicated executable as well as a darkplaces-glx execu...
[xonotic/darkplaces.git] / snd_dma.c
index 2639611d7bb7aabef66e27093d7d7914e40b9329..0e91d01085ea880e64c443fef90e0f35c872fc60 100644 (file)
--- a/snd_dma.c
+++ b/snd_dma.c
@@ -1135,3 +1135,8 @@ void S_ResampleBuffer16Stereo(short *input, int inputlength, short *output, int
        else
                memcpy(output, input, inputlength * sizeof(short[2]));
 }
+
+int S_RawSamples_SampleRate(void)
+{
+       return shm != NULL ? shm->speed : 0;
+}