mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-18 14:41:55 +00:00
- something can be heard, but it's crap.
This sound code is really strange.
This commit is contained in:
parent
9782b8180a
commit
51a5fecc02
6 changed files with 8 additions and 6 deletions
|
@ -51,6 +51,7 @@
|
|||
#include "i_soundfont.h"
|
||||
#include "s_music.h"
|
||||
#include "printf.h"
|
||||
#include "timer.h"
|
||||
#include "zmusic/zmusic.h"
|
||||
#include "streamsources/streamsource.h"
|
||||
#include "filereadermusicinterface.h"
|
||||
|
@ -255,6 +256,7 @@ void Mus_Init(void)
|
|||
|
||||
ZMusic_SetCallbacks(&callbacks);
|
||||
SetupGenMidi();
|
||||
timerSetCallback(S_UpdateMusic);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@ class FileReader;
|
|||
//
|
||||
// MUSIC I/O
|
||||
//
|
||||
void I_InitMusic ();
|
||||
|
||||
// Volume.
|
||||
void I_SetRelativeVolume(float);
|
||||
|
|
|
@ -208,6 +208,7 @@ bool S_ChangeMusic(const char* musicname, int order, bool looping, bool force)
|
|||
mus_playing.LastSong = "";
|
||||
return true;
|
||||
}
|
||||
if (*musicname == '/') musicname++;
|
||||
|
||||
FString DEH_Music;
|
||||
|
||||
|
|
|
@ -48,7 +48,7 @@ static playbackstatus MV_GetNextZMusicBlock(VoiceNode *voice)
|
|||
}
|
||||
|
||||
voice->sound = (const char*)buffer[whichbuffer];
|
||||
voice->length = 8192;
|
||||
voice->length = 8192 << 16;
|
||||
voice->position = 0;
|
||||
voice->BlockLength = 0;
|
||||
whichbuffer ^= 1;
|
||||
|
|
|
@ -380,7 +380,7 @@ void S_PlayLevelMusicOrNothing(unsigned int m)
|
|||
{
|
||||
if (S_TryPlayLevelMusic(m))
|
||||
{
|
||||
S_StopMusic();
|
||||
//S_StopMusic();
|
||||
S_SetMusicIndex(m);
|
||||
}
|
||||
}
|
||||
|
@ -404,7 +404,7 @@ void S_PlaySpecialMusicOrNothing(unsigned int m)
|
|||
{
|
||||
if (S_TryPlaySpecialMusic(m))
|
||||
{
|
||||
S_StopMusic();
|
||||
//S_StopMusic();
|
||||
S_SetMusicIndex(m);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -340,7 +340,7 @@ void S_PlayLevelMusicOrNothing(unsigned int m)
|
|||
{
|
||||
if (S_TryPlayLevelMusic(m))
|
||||
{
|
||||
S_StopMusic();
|
||||
//S_StopMusic();
|
||||
S_SetMusicIndex(m);
|
||||
}
|
||||
}
|
||||
|
@ -380,7 +380,7 @@ void S_PlaySpecialMusicOrNothing(unsigned int m)
|
|||
{
|
||||
if (S_TryPlaySpecialMusic(m))
|
||||
{
|
||||
S_StopMusic();
|
||||
//S_StopMusic();
|
||||
S_SetMusicIndex(m);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue