int Sound::DeleteAllSounds() { for (int index=0; index < MAX_SOUNDS; index++) DeleteSound(index); return(1); }
CGeneral::~CGeneral() { DeleteImages(); DeleteFonts(); DeleteMusic(); DeleteSound(); DeleteCursor(); }
int DeleteAllSounds(void) { for (int index = 0; index < MAX_SOUNDS; index++) { DeleteSound(index); } // return success always return(1); }
void SoundData::UnloadSoundFile (const char *name) { // do *not* use GetSound here as it potentially creates // a new sound, why would we want to create a new one // upon deletion? SoundFile* sound = soundfiles.Get(csHashCompute(name), NULL); if(sound) { DeleteSound(sound); } return; }