I'm very new to Processing, but I've got an infrared sensor that when a certain distance is detected, will play a sound. I'm using Minim to play the sound but when it is triggered, it lags for almost an entire second before playing. The sound byte is very small and it's loaded in my setup so I'm unsure how I can counter this lag. Here is my code: