示例#1
0
文件: Sound.cpp 项目: xzrunner/t3d
int Sound::DeleteAllSounds()
{
	for (int index=0; index < MAX_SOUNDS; index++)
		DeleteSound(index);

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