|
|
@ -70,7 +70,7 @@ float EAX_MATERIAL_PARAM[] =
|
|
|
|
class CSoundGroupSerializer
|
|
|
|
class CSoundGroupSerializer
|
|
|
|
{
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
public:
|
|
|
|
std::vector<std::pair<NLMISC::TStringId, NLMISC::TStringId> > _SoundGroupAssoc;
|
|
|
|
std::vector<std::pair<NLMISC::CSheetId, NLMISC::CSheetId> > _SoundGroupAssoc;
|
|
|
|
|
|
|
|
|
|
|
|
// load the values using the george sheet (called by GEORGE::loadForm)
|
|
|
|
// load the values using the george sheet (called by GEORGE::loadForm)
|
|
|
|
void readGeorges (const NLMISC::CSmartPtr<NLGEORGES::UForm> &form, const std::string &/* name */)
|
|
|
|
void readGeorges (const NLMISC::CSmartPtr<NLGEORGES::UForm> &form, const std::string &/* name */)
|
|
|
@ -103,7 +103,7 @@ public:
|
|
|
|
sound = sound.substr(0, n);
|
|
|
|
sound = sound.substr(0, n);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
_SoundGroupAssoc.push_back(make_pair(CStringMapper::map(soundGroup), CStringMapper::map(sound)));
|
|
|
|
_SoundGroupAssoc.push_back(make_pair(CSheetId(soundGroup), CSheetId(sound) /*CStringMapper::map(soundGroup), CStringMapper::map(sound)*/));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
catch(...)
|
|
|
|
catch(...)
|
|
|
@ -131,15 +131,15 @@ public:
|
|
|
|
s.serial(soundGroup);
|
|
|
|
s.serial(soundGroup);
|
|
|
|
s.serial(sound);
|
|
|
|
s.serial(sound);
|
|
|
|
|
|
|
|
|
|
|
|
_SoundGroupAssoc.push_back(make_pair(CStringMapper::map(soundGroup), CStringMapper::map(sound)));
|
|
|
|
_SoundGroupAssoc.push_back(make_pair(CSheetId(soundGroup), CSheetId(sound) /*CStringMapper::map(soundGroup), CStringMapper::map(sound)*/));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
else
|
|
|
|
{
|
|
|
|
{
|
|
|
|
std::string soundGroup;
|
|
|
|
std::string soundGroup;
|
|
|
|
std::string sound;
|
|
|
|
std::string sound;
|
|
|
|
|
|
|
|
|
|
|
|
soundGroup = CStringMapper::unmap(_SoundGroupAssoc[i].first);
|
|
|
|
soundGroup = _SoundGroupAssoc[i].first.toString();// CStringMapper::unmap(_SoundGroupAssoc[i].first);
|
|
|
|
sound = CStringMapper::unmap(_SoundGroupAssoc[i].second);
|
|
|
|
sound = _SoundGroupAssoc[i].second.toString(); //CStringMapper::unmap(_SoundGroupAssoc[i].second);
|
|
|
|
|
|
|
|
|
|
|
|
s.serial(soundGroup);
|
|
|
|
s.serial(soundGroup);
|
|
|
|
s.serial(sound);
|
|
|
|
s.serial(sound);
|
|
|
@ -292,7 +292,7 @@ void CClusteredSound::update(const CVector &listenerPos, const CVector &/* view
|
|
|
|
TStringStringMap::iterator it2(_SoundGroupToSound.find(soundGroup));
|
|
|
|
TStringStringMap::iterator it2(_SoundGroupToSound.find(soundGroup));
|
|
|
|
if (it2 != _SoundGroupToSound.end())
|
|
|
|
if (it2 != _SoundGroupToSound.end())
|
|
|
|
{
|
|
|
|
{
|
|
|
|
NLMISC::TStringId soundName = it2->second;
|
|
|
|
NLMISC::CSheetId soundName = it2->second;
|
|
|
|
CClusterSound cs;
|
|
|
|
CClusterSound cs;
|
|
|
|
|
|
|
|
|
|
|
|
// nldebug("Found the sound [%s] for sound group [%s]", CStringMapper::unmap(soundName).c_str(), CStringMapper::unmap(soundGroup).c_str());
|
|
|
|
// nldebug("Found the sound [%s] for sound group [%s]", CStringMapper::unmap(soundName).c_str(), CStringMapper::unmap(soundGroup).c_str());
|
|
|
|