How to Play a Sound Twice in a Row
I'm currently trying to make a handheld device model that will beep twice when turned on. I have it beeping after a 5 second delay currently after being turned on, however I cannot get it to play the beep again following the first one.
I'm just using source.PlayDelayed(5); source.Play();
I've also tried adding an additional AudioClip and making another AudioSource but I still cannot get it to work
Answer by $$anonymous$$ · Jun 09, 2017 at 03:20 PM
@w029bnw The second call to Play might override the call to PlayDelayed. Try this answer to play an audio file after another finishes:
http://answers.unity3d.com/questions/904981/how-to-play-an-audio-file-after-another-finishes.html
You could also try PlayOneShot and call it twice after a delay.
The link you gave was the answer! Thank you. I had been attempting to use PlayOneShot twice previously before I added the delay and it wouldn't do it then. But I figured out a different delay system and used the method from the other answer. Thanks again!
Your answer
Follow this Question
Related Questions
Stop Audio Source Clip while button Press 1 Answer
can i make a loop for each with all audiosources of my project ? 0 Answers
How to reduce delay when playing sound 0 Answers
Second AudioClip won't play 0 Answers
Newbie with OnTriggerEnter & Audio Files 0 Answers