]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_modplug.c
fix two warnings with statically linked-in libmodplug
[xonotic/darkplaces.git] / 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)