- Home /
Audio stutter on simple "sound-keyboard" AR game
Hi guys So, I'm trying to build a very simple AR soundboard. I got it to work with an array of sound clips and a switch statement within update that looks for the button name = hit.transform.name; via raycasting.
my question however is that when i play back the sounds on my android device, the sounds stutter. do any of you have an idea of that is going on?
Answer by eyeofra · Feb 07, 2018 at 03:09 PM
ok, answered my own question. i only looked for if (Input.touchCount > 0), which meant that it often would register multiple clicks/touches. the fix was: if (Input.touchCount > 0 && Input.touches[0].phase == TouchPhase.Began) where i here look for a touch, but also only the beginning of the touch press.
Your answer
Follow this Question
Related Questions
Sounds looping how to restrict 1 Answer
Sound in unity3d 2 Answers
sounds will not hear in build in some levels 2 Answers
How to make sound effects ??? 2 Answers
Play many sounds (60 to 200) without Unity cutting sound 1 Answer