]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fix two warnings with statically linked-in libmodplug
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 26 Oct 2008 16:10:40 +0000 (16:10 +0000)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Sun, 26 Oct 2008 16:10:40 +0000 (16:10 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@8540 d7cf8633-e32d-0410-b094-e92efae38249

snd_modplug.c

index 35b255c91e7f57e2ac2c79bcb2a439b32219c757..44903fd794df06b1be7e2c49073903e7bc62e6c8 100644 (file)
@@ -256,7 +256,9 @@ static const snd_buffer_t* ModPlug_FetchSound (void *sfxfetcher, void **chfetche
                        return NULL;
                }
 
+#ifndef SND_MODPLUG_STATIC
                if(ModPlug_SetMasterVolume)
+#endif
                        ModPlug_SetMasterVolume(per_ch->mf, 512); // max volume, DP scales down!
 
                per_ch->bs = 0;
@@ -466,7 +468,9 @@ qboolean ModPlug_LoadModPlugFile (const char *filename, sfx_t *sfx)
                return false;
        }
 
+#ifndef SND_MODPLUG_STATIC
        if(ModPlug_SetMasterVolume)
+#endif
                ModPlug_SetMasterVolume(mf, 512); // max volume, DP scales down!
 
        if (developer_loading.integer >= 2)