- Home /
AudioMixer Bug - Am I doing something wrong?
So i have pickups,which can do slowmo and a shield. One of them is suppoesed to set the pitch of the whole game sound down to 75% and the other should set the cutoff frequenzes down to 600Hz. Both work fine when i start the effects, but when they get turned off again some weird stuff happens. Here's the code snippet which is used to set the parameters.
public void setSoundDamping(bool isDamped) {
soundMixer.SetFloat("Cutoff Frequenzes", isDamped ? 600f : 22000f);
}
public void setSoundPitch(bool isSlow) {
soundMixer.SetFloat("Pitch", isSlow ? .75f : 1f);
}
The music playing gets sometimes muted completely or is stopping for a couple seconds. Sound effects have also some weird issues. Why isn't this working? Here's an image of the AudioMixer and the group used to achieve both effects named above.
The Pitch and the Cutoff freq Values are Exposed Values. So i can modify them.
So is there any step in my approach that isn't really allowed by unity? Why am i getting these weird bugs?
Your answer
Follow this Question
Related Questions
How many audio channels does mobile have 0 Answers
AudioClip Import Order Randomized? 4 Answers
Audio Source Pitch effect Legacy Animation 1 Answer
Audio Record Limit? 1 Answer