I need to play the sound of the “horn” when the user touches the screen.
The sound of the sound signal shall be reproduced as long as the user's finger remains in contact with the screen.
The end of the sound effect will be different. Imagine that the horn is “dusty" at the end when the airflow decreases.
Will I need to stitch 2 audio files together? Do I need to use remote I / O since the time will be so critical?
This library looks like an opportunity:
http://www.surina.net/soundtouch/
It seems that I could play the sound endlessly, but I have not yet implemented it, so I'm not sure.
I feel this will be a common problem in game programming, but I have little experience in this area.
I have never used audio before, so I can’t get started. (I only needed to use AVAudioPlayer in my applications before.)
Any suggestions on using the library or using technology will be helpful.
source
share