MCPcopy Create free account
hub / github.com/OpenFodder/openfodder / Music_Decrease_Channel_Volume

Method Music_Decrease_Channel_Volume

Source/Fodder.cpp:2092–2105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2090}
2091
2092bool cFodder::Music_Decrease_Channel_Volume() {
2093 bool ret = false;
2094 if (mSound) {
2095
2096 for (int i = 0; i < 4; ++i) {
2097 int16 v = mSound->Music_GetVolume(i);
2098 if (v > 0) {
2099 ret = true;
2100 mSound->Music_SetVolume(i, --v);
2101 }
2102 }
2103 }
2104 return ret;
2105}
2106
2107/**
2108 * Load the Base and Sub Tile BLK Files

Callers

nothing calls this directly

Calls 2

Music_SetVolumeMethod · 0.80
Music_GetVolumeMethod · 0.45

Tested by

no test coverage detected