Archomeda / csl-ambient-sounds-tuner

Tune your ambient sounds volumes individually
http://steamcommunity.com/sharedfiles/filedetails/?id=455958878
MIT License
9 stars 4 forks source link

Changing either the police or ambulance siren changes them both #9

Closed Archomeda closed 9 years ago

Archomeda commented 9 years ago

The game treats the police sirens the same as the ambulance sirens. Since they are both references, when you change one, the other one gets changed too.

In other words: This causes the volume of the police sirens to be the same with the ambulance sirens. If you change the volume of one siren, the other one gets changed automatically as well.

In order to solve this, we have to prevent that both EffectInfo objects reference the same AudioInfo object. This means that we have to duplicate the ambulance siren AudioInfo object to the police siren EffectInfo object. After that, we should be able to change them individually.