CSoundManager::~CSoundManager() { Protokoll.WriteText("-> Shutting down Sound Manager\n", false); FMUSIC_StopAllSongs(); // Songs freigeben // for (int i=0; i<MAX_SONGS; i++) if (its_Songs[i] != NULL) { delete(its_Songs[i]); // Freigeben its_Songs[i] = NULL; } its_LoadedSongs = 0; // Sounds freigeben for (int i=0; i<MAX_SOUNDS; i++) if (its_Sounds[i] != NULL) { delete(its_Sounds[i]); // Freigeben its_Sounds[i] = NULL; } its_LoadedSounds = 0; // FSOUND beenden // FSOUND_Close(); }; // Desktruktor
void CSound::StopMID(int all, int Index) { if (all) { FMUSIC_StopAllSongs(); } else { switch(Index) { case 0: FMUSIC_StopSong(m_BC1); break; case 1: FMUSIC_StopSong(m_BC2); break; case 2: FMUSIC_StopSong(m_BC3); break; case 3: FMUSIC_StopSong(m_BC5); break; case 4: FMUSIC_StopSong(m_BC6); break; case 5: FMUSIC_StopSong(m_BC8); break; case 6: FMUSIC_StopSong(m_BC9); break; } } }
IntroClass::~IntroClass(void) { FMUSIC_StopAllSongs(); }