Public Member Functions | |
void | readGeorges (const NLMISC::CSmartPtr< NLGEORGES::UForm > &form, const std::string &name) |
void | removed () |
void | serial (NLMISC::IStream &s) |
Static Public Member Functions | |
uint | getVersion () |
Data Fields | |
std::vector< CAudioMixerUser::CControledSources > | Controlers |
|
Definition at line 890 of file audio_mixer_user.cpp. References uint.
00890 { return 2; }
|
|
Definition at line 839 of file audio_mixer_user.cpp. References Controlers, NLGEORGES::UFormElm::getArraySize(), NLGEORGES::UFormElm::getArrayValue(), NLGEORGES::UFormElm::getNodeByName(), NLGEORGES::UFormElm::getValueByName(), NLSOUND::CAudioMixerUser::CControledSources::Name, NLSOUND::CAudioMixerUser::CControledSources::ParamId, size, NLSOUND::CAudioMixerUser::CControledSources::SoundNames, uint, and NLSOUND::CAudioMixerUser::CControledSources::Value.
00840 { 00841 try 00842 { 00843 std::string varname, soundName, paramId; 00844 NLGEORGES::UFormElm &root = form->getRootNode(); 00845 NLGEORGES::UFormElm *items; 00846 uint size; 00847 00848 CAudioMixerUser::CControledSources cs; 00849 00850 // preset the default value 00851 cs.Value = 0.0f; 00852 00853 root.getValueByName(varname, ".Name"); 00854 root.getValueByName(paramId, ".ParamId"); 00855 00856 cs.Name = CStringMapper::map(varname); 00857 if (paramId == "Gain") 00858 cs.ParamId = CAudioMixerUser::gain_control; 00859 else if (paramId == "Pitch") 00860 cs.ParamId = CAudioMixerUser::pitch_control; 00861 else 00862 return; 00863 00864 root.getNodeByName(&items, ".Sounds"); 00865 items->getArraySize(size); 00866 00867 for (uint i=0; i<size; ++i) 00868 { 00869 items->getArrayValue(soundName, i); 00870 soundName = soundName.substr(0, soundName.find(".sound")); 00871 00872 cs.SoundNames.push_back(CStringMapper::map(soundName)); 00873 } 00874 00875 if (!cs.SoundNames.empty()) 00876 Controlers.push_back(cs); 00877 } 00878 catch(...) 00879 {} 00880 } |
|
Definition at line 887 of file audio_mixer_user.cpp.
00888 {} |
|
Definition at line 882 of file audio_mixer_user.cpp. References Controlers, and s.
00883 { 00884 s.serialCont(Controlers); 00885 } |
|
Definition at line 838 of file audio_mixer_user.cpp. Referenced by readGeorges(), and serial(). |