I want to play a short sound .wav in Java when a timer goes off. The stipulation is that I have a bunch of these timers, and it's very likely that more than one will go off at or near the same time. In that case, I want the sound to play only once and just drop the other requests to play the sound. I don't want the sounds played back to back or anything like that.
Any help on how to code something like that is appreciated.