/////////////////////////////////////////////////////////////////////
| 187 | |
| 188 | ////////////////////////////////////////////////////////////////////////// |
| 189 | void SoundEnvironment_LIB::Load(LPCSTR f_name) |
| 190 | { |
| 191 | // R_ASSERT(library.empty()); |
| 192 | |
| 193 | IReader* F = FS.r_open(f_name); |
| 194 | IReader* C; |
| 195 | |
| 196 | for (u32 chunk = 0; 0 != (C = F->open_chunk(chunk)); chunk++) |
| 197 | { |
| 198 | CSoundRender_Environment* E = xr_new<CSoundRender_Environment>(); |
| 199 | if (E->load(C)) |
| 200 | library.push_back(E); |
| 201 | else |
| 202 | xr_delete(E); |
| 203 | |
| 204 | C->close(); |
| 205 | } |
| 206 | |
| 207 | FS.r_close(F); |
| 208 | } |
| 209 | |
| 210 | bool SoundEnvironment_LIB::Save(LPCSTR f_name) const |
| 211 | { |