- if (PropertyName == wxT("ALTID")){
-
- SoundsListAltID.erase(*SoundCount);
- SoundsListAltID.insert(std::make_pair(*SoundCount, PropertyValue));
-
- } else if (PropertyName == wxT("PID")){
-
- SoundsListPID.erase(*SoundCount);
- SoundsListPID.insert(std::make_pair(*SoundCount, PropertyValue));
+ ProcessStringValue(&PropertyName, "ALTID", &SoundsListAltID, &PropertyValue, SoundCount, &PropertyMatched);
+ ProcessStringValue(&PropertyName, "PID", &SoundsListPID, &PropertyValue, SoundCount, &PropertyMatched);
+ ProcessStringValue(&PropertyName, "MEDIATYPE", &SoundsListMediatype, &PropertyValue, SoundCount, &PropertyMatched);
+ ProcessStringValue(&PropertyName, "LANGUAGE", &SoundsListLanguage, &PropertyValue, SoundCount, &PropertyMatched);
+ ProcessIntegerValue(&PropertyName, "PREF", &SoundsListPref, &PropertyValue, SoundCount, &PropertyMatched);