We are about to switch to a new forum software. Until then we have removed the registration on this forum.
The example PlayAFile works perfectly. So I traced it in the Processing's libraries folder and pasted another file "A.wav" in the data folder. Tried to play that file ( player = minim.loadFile("A.wav"); ), but now I'm getting java.lang.NullPointerException. Should I be limiting the samples or something? The code is the same the example, except for A.wav part.
Answers
Can't guess what went wrong in your case, but I suggest to copy the examples to your sketchbook, to keep the originals intact.
And you will be in a familiar environment, where you can experiment at will.
Do you have any other error message? Sometime, Minim complains when it doesn't recognize the file format.
I tried that again. Created new project, copied the example PlayASound, created a "data" folder in the new project and copied the sound "A.wav" in it. Is there any particular type of audio file that should be played? Is this maybe too complicated of a file? Anyway, this is what it returned:
Turns out it needed an .mp3 input. Problem solved, I guess.