void CGUISoundsManager::setSoundParameter(const std::string &sound, std::string &parameter, float value)
	{
		CSound *s = findSound(sound);
		if(!s)
		{
			BaseSubsystems::Log::Warning("Estas accediendo a un sonido no registrado en GUISoundsManager");
		}
		else
		{
			s->setParameter(parameter, value);
		}
	}//setSoundParameter
	void CGUISoundsManager::stopSound(const std::string &sound)
	{
		CSound *s = findSound(sound);
		if(!s)
		{
			BaseSubsystems::Log::Warning("Estas accediendo a un sonido no registrado en GUISoundsManager");
		}
		else
		{
			s->stop();
		}
	}//stopSound
예제 #3
0
AudioSound* Audio::PreloadSound(const char* filename)
{
    AudioSound* sound = findSound(IwHashString(filename));
    if (sound == 0)
    {
        sound = new AudioSound();
        if (!sound->Load(filename))
        {
            delete sound;
            return 0;
        }
        m_Sounds.push_back(sound);
    }

    return sound;
}
예제 #4
0
SoundRepository::SoundRepository(const QString &directory)
{
    findSound(directory, "delete");
    findSound(directory, "button");
}