]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_dma.c
The first step towards a real CD volume setting (only the fake CD tracks volume are...
[xonotic/darkplaces.git] / snd_dma.c
index 11fb8c326a991da7f51e052e97b0bcd1d0b581c4..c82539c647c43e1110be73422bed94ce98adc2cd 100644 (file)
--- a/snd_dma.c
+++ b/snd_dma.c
@@ -690,6 +690,12 @@ void S_ResumeGameSounds (void)
        }
 }
 
+void S_SetChannelVolume (unsigned int ch_ind, float fvol)
+{
+       channels[ch_ind].master_vol = fvol * 255;
+}
+
+
 void S_ClearBuffer(void)
 {
        int             clear;