MCPcopy Create free account
hub / github.com/DescentDevelopers/Descent3 / ClearTerrainSound

Function ClearTerrainSound

Descent3/GameLoop.cpp:2853–2861  ·  view source on GitHub ↗

Clear out all the terrain sound bands

Source from the content-addressed store, hash-verified

2851
2852// Clear out all the terrain sound bands
2853void ClearTerrainSound() {
2854 for (int b = 0; b < NUM_TERRAIN_SOUND_BANDS; b++) {
2855 Terrain_sound_bands[b].sound_index = -1;
2856 Terrain_sound_bands[b].low_alt = 0;
2857 Terrain_sound_bands[b].high_alt = 0;
2858 Terrain_sound_bands[b].low_volume = 0.0;
2859 Terrain_sound_bands[b].high_volume = 0.0;
2860 }
2861}
2862
2863// Starts the sound on the terrain
2864void StartTerrainSound() {

Callers 2

CreateNewMineFunction · 0.85
LoadLevelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected