Audio stuff moved around, removed MusicManager dependencies, eMusicMode used for ChangeMusicMode

This commit is contained in:
Sergeanur 2019-10-26 15:20:12 +03:00
parent 832572664c
commit d5a72fa597
14 changed files with 382 additions and 389 deletions

View file

@ -582,8 +582,8 @@ cAudioManager::ComputePan(float dist, CVector *vec)
return min(107, panTable[index] + 63);
}
uint32
cAudioManager::ComputeVolume(int emittingVolume, float soundIntensity, float distance) const
uint8
cAudioManager::ComputeVolume(uint8 emittingVolume, float soundIntensity, float distance) const
{
float newSoundIntensity;
if(soundIntensity <= 0.0f) return 0;