This commit is contained in:
Paul 2001-07-09 15:27:30 +00:00
parent 481d05cc06
commit 408cdeb29d
2 changed files with 11 additions and 0 deletions

View file

@ -90,6 +90,9 @@ int CSoundMediator::s_songStartPattern=0;
xmSampleId CSoundMediator::s_sfxSampleId=NO_SAMPLE;
xmModId CSoundMediator::s_sfxModId=NO_SONG;
int CSoundMediator::s_canPlaySfx=true;
static CSpuSound *s_spuSound;
static CXMPlaySound *s_xmplaySound;
@ -557,6 +560,11 @@ void CSoundMediator::setSfxBank(SFXBANKID _bankId)
---------------------------------------------------------------------- */
xmPlayingId CSoundMediator::playSfx(SFXID _sfxId,int _lock=false)
{
if(!s_canPlaySfx)
{
return NOT_PLAYING;
}
int sfxChannelMask;
xmPlayingId playId;
SFXDETAILS *sfx;