]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_main.c
Add support for libmodplug (when found). Sound files with an extension are now all...
[xonotic/darkplaces.git] / snd_main.c
index d0b9139036faee4db8ddf1b13565efcbd3d2b041..cd9700cedd616385e98a2dac3e5bc2c7ec6f592e 100644 (file)
@@ -759,6 +759,7 @@ void S_Init(void)
        memset(channels, 0, MAX_CHANNELS * sizeof(channel_t));
 
        OGG_OpenLibrary ();
+       ModPlug_OpenLibrary ();
 }
 
 
@@ -772,6 +773,7 @@ Shutdown and free all resources
 void S_Terminate (void)
 {
        S_Shutdown ();
+       ModPlug_CloseLibrary ();
        OGG_CloseLibrary ();
 
        // Free all SFXs