Ejemplo n.º 1
0
int Sound::DeleteAllSounds()
{
	for (int index=0; index < MAX_SOUNDS; index++)
		DeleteSound(index);

	return(1);
}
Ejemplo n.º 2
0
CGeneral::~CGeneral()
{
   DeleteImages();
   DeleteFonts();
   DeleteMusic();
   DeleteSound();
   DeleteCursor();
}
Ejemplo n.º 3
0
int DeleteAllSounds(void)
{
    for (int index = 0; index < MAX_SOUNDS; index++) {
        DeleteSound(index);
    }
    
    // return success always
    return(1);
}
Ejemplo n.º 4
0
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;
}