Question by
Dionisie · Jul 03, 2017 at 08:50 AM ·
c#soundsound effects
Scary distorted sounds
void Update()
{
if (count >= 3)
{
StartCoroutine (win ());
}
}
IEnumerator win()
{
winText.text = "You win!";
SoundManagerScript.PlaySound ("win");
yield return new WaitForSeconds (4);
reloadScene ();
}
//Here is the SoundManagerScript
public static void PlaySound(string clip)
{
switch (clip) {
case "win":
audioSrc.PlayOneShot (winSound);
break;
case "lose":
audioSrc.PlayOneShot (loseSound);
break;
case "collect":
audioSrc.PlayOneShot (collectSound);
break;
I followed a tutorial on how to play sounds, I did everything as I should've, but the problem is this: The collect sound isn't distorted, only the win and lose sounds are, I don't know what to do! I tried setting the doppler factor to 0 but that didn't help. I am desperate
Comment
Your answer
Follow this Question
Related Questions
What's wrong with my audiostream on android? 0 Answers
How can I get my sound array working here? 0 Answers
change sound pitch on object 0 Answers