]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_main.c
Experimental theora capturevideo code.
[xonotic/darkplaces.git] / snd_main.c
index cd30df0f2b0330edb700b6c6a5e7ef312d1b1cea..495381efeaf75c86350f8f0b5c21d1d76c26ef0c 100644 (file)
@@ -354,6 +354,11 @@ int S_GetSoundRate(void)
        return snd_renderbuffer ? snd_renderbuffer->format.speed : 0;
 }
 
+int S_GetSoundChannels(void)
+{
+       return snd_renderbuffer ? snd_renderbuffer->format.channels : 0;
+}
+
 
 static qboolean S_ChooseCheaperFormat (snd_format_t* format, qboolean fixed_speed, qboolean fixed_width, qboolean fixed_channels)
 {