// JAB - Cache & start the appropriate music for this level void StartMusic(void) { musicnames chunk; SD_MusicOff(); chunk = TOOHOT_MUS; // if ((chunk == -1) || (MusicMode != smm_AdLib)) //DEBUG control panel return; MM_BombOnError (false); CA_CacheAudioChunk(STARTMUSIC + chunk); MM_BombOnError (true); if (mmerror) mmerror = false; else { MM_SetLock(&((memptr)audiosegs[STARTMUSIC + chunk]),true); SD_StartMusic((MusicGroup far *)audiosegs[STARTMUSIC + chunk]); } }
void StartMusic(void) { musicnames chunk; SD_MusicOff(); chunk = songs[gamestate.mapon+gamestate.episode*10]; // if ((chunk == -1) || (MusicMode != smm_AdLib)) //DEBUG control panel return; MM_BombOnError (False); CA_CacheAudioChunk(STARTMUSIC + chunk); MM_BombOnError (True); if (mmerror) mmerror = False; else { MM_SetLock(&((memptr)audiosegs[STARTMUSIC + chunk]),True); SD_StartMusic((MusicGroup *)audiosegs[STARTMUSIC + chunk]); } }