I am making a 2d guitar app where i correspond little cubes (frets) to sounds (notes). But i cannot get immediate sounds from touches. There is a small delay between touches and sounds. how can i avoid that?
Could be one of 2 (at least) things:
- Make sure there is no empty space at the beginning of your audio files.
- Store the sounds in memory rather than reading from the disc, this should make them quicker to access. More info can be found here: Unity - Manual: Audio Clip
I have noticed that when i run the app in unity remote there is no delay at all, but when i build and run the app for android there is some delay. Any ideas about that?