void CGUISoundsManager::setSoundParameter(const std::string &sound, std::string ¶meter, 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
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; }
SoundRepository::SoundRepository(const QString &directory) { findSound(directory, "delete"); findSound(directory, "button"); }