MCPcopy Create free account
hub / github.com/OGSR/OGSR-Engine / load

Method load

ogsr_engine/xrSound/SoundRender_Environment.cpp:99–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

97}
98
99bool CSoundRender_Environment::load(IReader* fs)
100{
101 version = fs->r_u32();
102
103 if (version >= 0x0003)
104 {
105 fs->r_stringZ(name);
106
107 Room = fs->r_float();
108 RoomHF = fs->r_float();
109 RoomRolloffFactor = fs->r_float();
110 DecayTime = fs->r_float();
111 DecayHFRatio = fs->r_float();
112 Reflections = fs->r_float();
113 ReflectionsDelay = fs->r_float();
114 Reverb = fs->r_float();
115 ReverbDelay = fs->r_float();
116 EnvironmentSize = fs->r_float();
117 EnvironmentDiffusion = fs->r_float();
118 AirAbsorptionHF = fs->r_float();
119
120 if (version > 0x0003)
121 Environment = fs->r_u32();
122
123 return true;
124 }
125
126 return false;
127}
128
129void CSoundRender_Environment::save(IWriter* fs) const
130{

Callers 2

i_create_sourceMethod · 0.45
LoadMethod · 0.45

Calls 3

r_u32Method · 0.45
r_stringZMethod · 0.45
r_floatMethod · 0.45

Tested by

no test coverage detected