I'm fairly new to Processing, and I have been trying to get an AudioSample working using the Minim Library. I have been getting the buffer underrun error message, and more problematically, a very strange buzzing noise on the Audio. It can still be played, but I've had no success in getting it to sound normal. I've tried a few different pieces of code- even this one I re-jigged from one of the samples. It might also be important to note that I'm working on a Mac (OSX)
import ddf.minim.*;
Minim minim;
AudioSample song;
void setup()
{
size(512, 200, P3D);
minim = new Minim(this);
// load BD.wav from the data folder
song = minim.loadSample("song1.mp3", 2048);
if ( song == null ) println("Didn't get song!");
}
void draw()
{
background(0);
stroke(255);
// use the mix buffer to draw the waveforms.
}