ReC98/th02/snd/kajaint.cpp

36 lines
547 B
C++

#pragma option -zCSHARED
#if (GAME == 5)
#pragma option -k-
#endif
#if (GAME >= 4)
#include "th04/snd/snd.h"
#else
#include "th02/snd/snd.h"
#endif
#include "th02/snd/impl.hpp"
int16_t DEFCONV snd_kaja_interrupt(int16_t ax)
{
if(!snd_bgm_active()) {
return _AX;
}
// TH04 should use snd_get_param() here, but doesn't....
#if (GAME == 5)
_AX = snd_get_param(ax);
#else
_AX = ax;
#endif
if(snd_bgm_is_fm()) {
geninterrupt(PMD);
} else {
geninterrupt(MMD);
}
return _AX;
}
#if (GAME == 5)
#pragma codestring "\x90"
#endif