Constructor undefined? Please Help!
in
Programming Questions
•
2 years ago
When I run this code, it comes up with: The constructor Minim(sketch_apr15b.SoundCircle) is undefined.
What do I do to Fix This?
import ddf.minim.*;
class SoundCircle
{
int w;
int h;
float xPos;
float yPos;
float ySpeed;
SoundCircle(int a, int b, int c, AudioPlayer d){
}
Minim m;
SoundCircle circ;
void setup(){
size(500,500);
smooth();
frameRate(1000);
m = new Minim(this);
AudioPlayer player = m.loadFile("Explosion.mp3");
circ = new SoundCircle(250,250,100,player);
}
void draw(){
if(circ.isOver(mouseX, mouseY))
circ.play(dist(mouseX,mouseY,pmouseX,pmouseY));
background(255);
circ.draw();
}
}
1