I have a self-generated DTMF sound (with a wav header) generated by program that I want to be able to play quickly, in fact as soon as the user touches a button. This DTMF sound must play/loop infinitely, until I stop it. Some other sounds must be able to be played at the same time.
I’m very new to Audio programming, and I tested many ways of doing that and I’m lost now.
How can I achieve that ?
Needs :
- very quick playback start (including the first time)
- many sounds at the same time (short sounds +- 2-6 seconds)
- infinite DTMF sound without gaps
- having control over the different sounds that are playing / being able to stop just one played sound
AVAudioPlayerif you can live with some latency, OpenAL (for example Finch) if you really need to have the latency as low as possible.