From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/a03639.html | 251 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 251 insertions(+) create mode 100644 docs/doxygen/nel/a03639.html (limited to 'docs/doxygen/nel/a03639.html') diff --git a/docs/doxygen/nel/a03639.html b/docs/doxygen/nel/a03639.html new file mode 100644 index 00000000..57d103a8 --- /dev/null +++ b/docs/doxygen/nel/a03639.html @@ -0,0 +1,251 @@ + + +NeL: NLSOUND::CUserVarSerializer class Reference + + + +
+

NLSOUND::CUserVarSerializer Class Reference

+ + + + + + + + + + + + + + +

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::CControledSourcesControlers
+

Member Function Documentation

+

+ + + + +
+ + + + + + + + + +
uint NLSOUND::CUserVarSerializer::getVersion  )  [inline, static]
+
+ + + + + +
+   + + +

+ +

+Definition at line 890 of file audio_mixer_user.cpp. +

+References uint. +

+

00890 { return 2; }
+
+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
void NLSOUND::CUserVarSerializer::readGeorges const NLMISC::CSmartPtr< NLGEORGES::UForm > &  form,
const std::string &  name
[inline]
+
+ + + + + +
+   + + +

+ +

+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         }
+
+

+ + + + +
+ + + + + + + + + +
void NLSOUND::CUserVarSerializer::removed  )  [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 887 of file audio_mixer_user.cpp. +

+

00888         {}
+
+

+ + + + +
+ + + + + + + + + + +
void NLSOUND::CUserVarSerializer::serial NLMISC::IStream s  )  [inline]
+
+ + + + + +
+   + + +

+ +

+Definition at line 882 of file audio_mixer_user.cpp. +

+References Controlers, and s. +

+

00883         {
+00884                 s.serialCont(Controlers);
+00885         }
+
+


Field Documentation

+

+ + + + +
+ + +
std::vector<CAudioMixerUser::CControledSources> NLSOUND::CUserVarSerializer::Controlers +
+
+ + + + + +
+   + + +

+ +

+Definition at line 838 of file audio_mixer_user.cpp. +

+Referenced by readGeorges(), and serial().

+


The documentation for this class was generated from the following file: +
Generated on Tue Mar 16 14:49:38 2004 for NeL by + +doxygen +1.3.6
+ + -- cgit v1.2.1