From a98b666d915ca5539a748f6d08fc97c193d18272 Mon Sep 17 00:00:00 2001 From: molivier Date: Wed, 9 Mar 2005 13:09:35 +0000 Subject: [PATCH] Moved audio CD initialization / finalization out of the video code so the CD music doesn't stop playing when doing a vid_restart. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5073 d7cf8633-e32d-0410-b094-e92efae38249 --- host.c | 1 + vid_shared.c | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/host.c b/host.c index c1aeccfd..7a49529f 100644 --- a/host.c +++ b/host.c @@ -942,6 +942,7 @@ void Host_Init (void) if (cls.state != ca_dedicated) { VID_Open(); + CDAudio_Startup(); CL_InitTEnts (); // We must wait after sound startup to load tent sounds SCR_BeginLoadingPlaque(); MR_Init(); diff --git a/vid_shared.c b/vid_shared.c index 350466c3..2d9a81d9 100644 --- a/vid_shared.c +++ b/vid_shared.c @@ -1007,12 +1007,10 @@ static void VID_OpenSystems(void) { R_Modules_Start(); S_Startup(); - CDAudio_Startup(); } static void VID_CloseSystems(void) { - CDAudio_Shutdown(); S_Shutdown(); R_Modules_Shutdown(); } -- 2.39.2