]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_main.c
cl_nolerp: use normal time synchronisation
[xonotic/darkplaces.git] / snd_main.c
index ebf84b9bfd599e29601877a9e12971fa4116b872..6f3bf31e1294bd9f313377db4c08ebd6b1c9c29e 100644 (file)
@@ -661,6 +661,8 @@ void S_Startup (void)
 #ifdef CONFIG_VIDEO_CAPTURE
        recording_sound = false;
 #endif
+
+       CDAudio_Startup();
 }
 
 void S_Shutdown(void)
@@ -668,6 +670,8 @@ void S_Shutdown(void)
        if (snd_renderbuffer == NULL)
                return;
 
+       CDAudio_Shutdown();
+
        oldpaintedtime = snd_renderbuffer->endframe;
 
        if (simsound)
@@ -824,6 +828,8 @@ void S_Init(void)
 #ifdef USEXMP
        XMP_OpenLibrary ();
 #endif
+
+       CDAudio_Init();
 }