can anybody help me? I don't know what happened:(
Heres the relevant part of the code:
import ddf.minim.*;
import ddf.minim.analysis.*;
import ddf.minim.effects.*;
import ddf.minim.signals.*;
import ddf.minim.spi.*;
import ddf.minim.ugens.*;
Minim minim;
AudioInput microphone;
void setup()
{
size(600, 600);
minim = new Minim ( this );
microphone = minim.getLineIn();
}
void draw()
{
float backgroundCol = microphone.mix.level() * 255 *10;
float rectSize = microphone.mix.level() * 800.0;
background(backgroundCol,backgroundCol,backgroundCol);
}
Heres the relevant part of the error:
==== JavaSound Minim Error ====
==== Unable to return a TargetDataLine: unsupported format - PCM_SIGNED 44100.0 Hz, 16 bit, stereo, 4 bytes/frame, little-endian
=== Minim Error ===
=== Minim.getLineIn: attempt failed, could not secure an AudioInput.
NullPointerException
Please tell me where I'm doing wrong.
Thanks, all. I found solution:https://github.com/ddf/Minim/issues/75