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

Method Music_Increase_Channel_Volume

Source/Fodder.cpp:2066–2090  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2064}
2065
2066void cFodder::Music_Increase_Channel_Volume() {
2067
2068 if (word_82176) {
2069 int16 d0 = mInterruptTick & 3;
2070 if (!d0) {
2071 for (int i = 0; i < 4; ++i) {
2072 int16 v = mSound->Music_GetVolume(i);
2073 if (v < 0x40) {
2074 mSound->Music_SetVolume(i, ++v);
2075 }
2076 }
2077 }
2078 }
2079
2080 if (word_82178) {
2081 Music_Decrease_Channel_Volume();
2082 }
2083
2084 if (mMusic_SlowVolumeDecrease) {
2085 int16 d0 = mInterruptTick & 0x3F;
2086 if (!d0) {
2087 Music_Decrease_Channel_Volume();
2088 }
2089 }
2090}
2091
2092bool cFodder::Music_Decrease_Channel_Volume() {
2093 bool ret = false;

Callers

nothing calls this directly

Calls 2

Music_SetVolumeMethod · 0.80
Music_GetVolumeMethod · 0.45

Tested by

no test coverage detected