yadarts / yadarts-desktop

yadarts desktop edition
2 stars 5 forks source link

This should finally fix #56 #58

Closed bpross-52n closed 10 years ago

bpross-52n commented 10 years ago

I have to admit, I am not sure why, but after removing this code from the if statement, all sounds, including the hit sounds, are played nicely in the order they are kicked off by the respective events.

matthesrieke commented 10 years ago

has to be a concurrency issue. pending should always be mutually excluded, but probably another thread is interacting with that collection. imho https://github.com/bpross-52n/yadarts-desktop/blob/master/src/main/java/spare/n52/yadarts/sound/SoundExecutor.java#L138 should also be inside the mutexed block below.