]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_main.c
Make cdda optional, server does not need to play music
[xonotic/darkplaces.git] / snd_main.c
index ab3ff1ac9b5c6f5e6775e3417212f8679751f016..ceb230defb46e4f8c0e486f163e4799fec20b001 100644 (file)
@@ -26,7 +26,9 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 #include "snd_modplug.h"
 #include "csprogs.h"
 #include "cl_collision.h"
+#ifdef CONFIG_CD
 #include "cdaudio.h"
+#endif
 
 
 #define SND_MIN_SPEED 8000
@@ -1821,8 +1823,10 @@ void S_StopAllSounds (void)
        if (snd_renderbuffer == NULL)
                return;
 
+#ifdef CONFIG_CD
        // stop CD audio because it may be using a faketrack
        CDAudio_Stop();
+#endif
 
        if (simsound || SndSys_LockRenderBuffer ())
        {