User will play a wave file by holding a key down. But once he lifts his finger off the key, it will stop playing the wave file.
The only way I can think of doing this is using a thread:
- The only way I can think of doing this successfully is by placing the playing of a wave file into a thread.
- The thread starts operation(wave file) when the key is pressed.
- The operation(wave file) is stopped by killing the thread.
This will be repeated many times. And I don't know if the user killing threads over and over again will kill the iPhone? Is there a better way?