I am preparing sounds system to my game in xna. I am using XACT Tools, and i got problem.
There is class SoundCategory. I can change sound level for all sounds in that category easily.
SoundCategory category = engine.GetCategory("music"); category.SetVolume(float_value);
But there is no such function like:
Which would increase or deacrease that value. There is also no function that get current volume so i can do thing like:
float vol = category.Add(float_value); vol += 0.1; category.SetVolume(vol);
Is there some clever way to achive what i want without creating some additional variables which keep current volume for all sounds categories ?