This seems as simple as I can find. The file does not play. All I get is a snippet of sound and it stops.Like one drum beat or maybe 3 drum beats. It is not always the same sound when I hit play. player.length says 313.
My hope was that processing would play the whole thing. Any suggestion as to what might be the problem?
import ddf.minim.*;
Minim minim;
AudioPlayer player;
void setup()
{
size(100, 100); // drawing size
minim = new Minim(this);
player = minim.loadFile("Handdrum1.mp3",2048); //use an mp3 file
player.play();
}