I'm trying to program a very simple virtual drum using Processing and Minim.
I am using AudioSample to load/trigger my drum samples, but when the sample is triggered, there's a few miliseconds delay before the sample actually plays. For my purpose, this delay destroys the user experience.
When I use such "small" buffer size (the default value is 1024), the sound becomes "failed"/distorted (I really don't know how to describe it, since I'm not fluent in english). But apparently the delay problem is fixed.
And, don't matter the buffer size value I chose, I always get: