Hi to all, i'm new to programming and to processing. I've to do a school project, but i've some trouble with my mac.
this code (give to me by my teacher, for example) cause an error, and other example sketch make the same.
// SOUNDS import processing.sound.*;
// SOUND VARIABLES SoundFile cinguettio;
// ANIMATION VARIABLES int anim = 0;
void setup() {
size(160,90);
// frameRate(25); smooth(); noStroke(); }
void draw() {
anim=anim+1; myVis();
}
void myVis() { cinguettio = new SoundFile(this, "cinguettio.mp3");
PImage cava = loadImage("CaldanaGavorranoQuarry1_256.jpg"); // cava.resize(500, 0); imageMode(CENTER); image(cava, width/2, height/2);
PFont myFont = loadFont("SansSerif-12.vlw"); textFont(myFont); textAlign(CENTER); fill(255); text("I prati e le siepi intorno alla cava ...", width/2+anim, height/2);
cinguettio.amp(0.02); cinguettio.play();
}
The error is:
RtApiCore::getDefaultInputDevice: No default device found!
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: RtApiCore::probeDeviceOpen: the device (0) does not support the requested channel count. Could not run the sketch (Target VM failed to initialize). For more information, read revisions.txt and Help → Troubleshooting.
Can someone help me?