mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-12 11:10:39 +00:00
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:
parent
c6c7c91d7c
commit
4ca1af72c3
1 changed files with 9 additions and 20 deletions
|
@ -34,6 +34,7 @@ Prepared for public release: 03/28/2005 - Charlie Wiederhold, 3D Realms
|
||||||
#include "mytypes.h"
|
#include "mytypes.h"
|
||||||
#include "fx_man.h"
|
#include "fx_man.h"
|
||||||
#include "music.h"
|
#include "music.h"
|
||||||
|
#include "al_midi.h"
|
||||||
#include "gamedefs.h"
|
#include "gamedefs.h"
|
||||||
#include "config.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)
|
void MusicStartup(void)
|
||||||
{
|
{
|
||||||
// if they chose None lets return
|
// if they chose None lets return
|
||||||
|
@ -1216,10 +1201,14 @@ void MusicStartup(void)
|
||||||
MusicInitialized = TRUE;
|
MusicInitialized = TRUE;
|
||||||
MUSIC_SetVolume(gs.MusicVolume);
|
MUSIC_SetVolume(gs.MusicVolume);
|
||||||
|
|
||||||
#if 0
|
auto fil = kopenFileReader("swtimbr.tmb", 0);
|
||||||
if (MusicInitialized)
|
|
||||||
loadtmb();
|
if (fil.isOpem())
|
||||||
#endif
|
{
|
||||||
|
auto tmb = fil.Read();
|
||||||
|
if (tmb.Size())
|
||||||
|
AL_RegisterTimbreBank(tmb.Data());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void COVER_SetReverb(int amt)
|
void COVER_SetReverb(int amt)
|
||||||
|
|
Loading…
Reference in a new issue