Audio Clips Cuts Out (PlayClitAtPoint)
Hey. I googled it and i didn't find any solution for my problem. This problem is really annoying. It should play "amazing" sound but it will cut it at "amaz.." sometimes. I have a array named as success. It should have play one sound in success array randomly. But sometimes my sound cuts out. It can cuts out all of my success sounds not just for "amazing" it's just a example. All of my sounds shorter than 1 second. Here is my code :
IEnumerator SuccessSound()
{
int randomClips = Random.Range(0, success.Length);
AudioSource.PlayClipAtPoint (success [randomClips], Vector3.zero, 1f);
yield return new WaitForSeconds (1.5f);
LoadNextScene ();
StopCoroutine ("SuccessSound");
}
Thanks for your help!
Your answer
Follow this Question
Related Questions
Audio Source stop playing even with "DontDestroyOnLoad" 0 Answers
Can not play a disabled audio source, but the source is definitely not disabled! 0 Answers
Destroy Object on Collision (with di sound) 0 Answers
How to use one button to play different audio for different Targets? 0 Answers
on and off music button in unity 5 0 Answers