Ability to play audio clips without interrupting previous

This commit is contained in:
2019-02-14 17:03:09 +01:00
parent 2fdce7f638
commit de6600ce4e

View File

@@ -8,7 +8,7 @@ import ch.psi.pshell.core.Context;
import ch.psi.pshell.core.DevicePool;
import ch.psi.pshell.core.DevicePoolListener;
import ch.psi.pshell.core.JsonSerializer;
import ch.psi.pshell.device.Device;
import ch.psi.pshell.device.Device;
import ch.psi.pshell.device.DeviceAdapter;
import ch.psi.pshell.device.DeviceListener;
import ch.psi.pshell.device.GenericDevice;
@@ -700,7 +700,7 @@ public class Controller {
void playSound(String name){
try{
Audio.playFile(new File(Context.getInstance().getSetup().expandPath("{home}/sounds/" + name + ".wav")));
Audio.playFile(new File(Context.getInstance().getSetup().expandPath("{home}/sounds/" + name + ".wav")), false);
} catch (Exception ex){
Logger.getLogger(Controller.class.getName()).log(Level.FINE, null, ex);
}