MCPcopy Create free account
hub / github.com/TombEngine/TombEngine / SetVolumeTracks

Function SetVolumeTracks

TombEngine/Sound/sound.cpp:69–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67static Vector3 oldMikePos = Vector3::Zero;
68
69void SetVolumeTracks(int vol)
70{
71 GlobalMusicVolume = vol;
72
73 float fVol = static_cast<float>(vol) / 100.0f;
74 for (int i = 0; i < (int)SoundTrackType::Count; i++)
75 {
76 if (BASS_ChannelIsActive(SoundtrackSlot[i].Channel))
77 BASS_ChannelSetAttribute(SoundtrackSlot[i].Channel, BASS_ATTRIB_VOL, fVol);
78 }
79}
80
81void SetVolumeFX(int vol)
82{

Callers 3

SaveAudioConfigFunction · 0.85
LoadConfigurationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected