SW: Load swtimbr.tmb

git-svn-id: https://svn.eduke32.com/eduke32@8262 1a8010ca-5511-0410-912e-c29ae57300e0

# Conflicts:
#	source/sw/src/sounds.cpp
This commit is contained in:
hendricks266 2019-10-24 05:47:33 +00:00 committed by Christoph Oelckers
parent c6c7c91d7c
commit 4ca1af72c3

View file

@ -34,6 +34,7 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
#include "mytypes.h"
#include "fx_man.h"
#include "music.h"
#include "al_midi.h"
#include "gamedefs.h"
#include "config.h"
@ -1174,22 +1175,6 @@ SoundShutdown(void)
===================
*/
#if 0
void loadtmb(void)
{
char tmb[8000];
int fil, l;
auto fil = kopenFileReader("swtimbr.tmb",0);
if (!fil.isOpen())
return;
auto tmb = fil.Read();
if(tmb.Size())
MUSIC_RegisterTimbreBank(tmb.Data());
}
#endif
void MusicStartup(void)
{
// if they chose None lets return
@ -1216,10 +1201,14 @@ void MusicStartup(void)
MusicInitialized = TRUE;
MUSIC_SetVolume(gs.MusicVolume);
#if 0
if (MusicInitialized)
loadtmb();
#endif
auto fil = kopenFileReader("swtimbr.tmb", 0);
if (fil.isOpem())
{
auto tmb = fil.Read();
if (tmb.Size())
AL_RegisterTimbreBank(tmb.Data());
}
}
void COVER_SetReverb(int amt)