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

Method Music_SetVolume

Source/Amiga/Sound_Amiga.cpp:248–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

246}
247
248void cSound_Amiga::Music_SetVolume(int16 pChannel, int16 pVolume) {
249 if (!mCurrentMusic)
250 return;
251
252 if (pChannel == -1) {
253 for (int Ch = 0; Ch < mCurrentMusic->NUM_VOICES; ++Ch) {
254 mCurrentMusic->volumeMax[Ch] = pVolume;
255 }
256 return;
257 }
258
259 mCurrentMusic->volumeMax[pChannel] = pVolume;
260}
261
262int16 cSound_Amiga::Music_GetVolume(int16 pChannel) {
263 if (!mCurrentMusic)

Callers 8

Music_setup_track_unkMethod · 0.80
Music_PlayMethod · 0.80
Music_SetFullVolumeMethod · 0.80
Music_Play_TilesetMethod · 0.80
Campaign_Select_SetupMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected