If I set the user per click screen play a sound (assumptions about 0.5 seconds time), if there is a master at this moment, a second can click on the screen for 10 times, so the question, then click on the time interval is less than the sound length, that is to say the next time you click on the sound has yet to play out, then directly to the audio. The play () is not working, the sound should play only broadcast a two times, how to solve this problem?
The original address: http://www.storyxu.com/2016/03/03/you-xi-yin-xiao-duan-shi-jian-nei-zhong-fu-bo-fang-wen-ti/
CodePudding user response:
In the queue, broadcast request all put in the queue, finished off a