Public Member Functions | |
void | serial (NLMISC::IStream &s) |
Data Fields | |
NLMISC::TStringId | Name |
The user var name. | |
TControledParamId | ParamId |
Witch parameter to control. | |
std::vector< NLMISC::TStringId > | SoundNames |
The controled sounds names. | |
std::set< CSourceCommon * > | Sources |
All the sources controled by this variable. | |
float | Value |
Current parameter value. |
|
Definition at line 935 of file audio_mixer_user.cpp. References ParamId, s, size, SoundNames, uint, and uint32.
00936 { 00937 std::string name, soundName; 00938 if (s.isReading()) 00939 { 00940 s.serial(name); 00941 Name = CStringMapper::map(name); 00942 s.serialEnum(ParamId); 00943 00944 uint32 size; 00945 s.serial(size); 00946 for (uint i=0; i<size; ++i) 00947 { 00948 s.serial(soundName); 00949 SoundNames.push_back(CStringMapper::map(soundName)); 00950 } 00951 } 00952 else 00953 { 00954 name = CStringMapper::unmap(Name); 00955 s.serial(name); 00956 s.serialEnum(ParamId); 00957 00958 uint32 size = SoundNames.size(); 00959 s.serial(size); 00960 00961 for (uint i=0; i<size; ++i) 00962 { 00963 soundName = CStringMapper::unmap(SoundNames[i]); 00964 s.serial(soundName); 00965 } 00966 } 00967 00968 // Default value to 0. 00969 Value = 0.0f; 00970 } |
|
The user var name.
Definition at line 401 of file audio_mixer_user.h. Referenced by NLSOUND::CUserVarSerializer::readGeorges(). |
|
Witch parameter to control.
Definition at line 403 of file audio_mixer_user.h. Referenced by NLSOUND::CUserVarSerializer::readGeorges(), and serial(). |
|
The controled sounds names.
Definition at line 405 of file audio_mixer_user.h. Referenced by NLSOUND::CUserVarSerializer::readGeorges(), and serial(). |
|
All the sources controled by this variable.
Definition at line 409 of file audio_mixer_user.h. |
|
Current parameter value.
Definition at line 407 of file audio_mixer_user.h. Referenced by NLSOUND::CUserVarSerializer::readGeorges(). |