Close down ambient sound system and free data
| 162 | |
| 163 | // Close down ambient sound system and free data |
| 164 | static void FreeAmbientSoundData() { |
| 165 | for (int p = 0; p < Num_ambient_sound_patterns; p++) |
| 166 | if (Ambient_sound_patterns[p].num_sounds) |
| 167 | mem_free(Ambient_sound_patterns[p].sounds); |
| 168 | |
| 169 | Num_ambient_sound_patterns = 0; |
| 170 | } |
| 171 | |
| 172 | // Initialize the ambient sound system |
| 173 | void InitAmbientSoundSystem() { |