I just install processing 3;3;6 on a brand new mac and on a brand new PC with the last version of java (8.144) and the last version of the sound library (1.4).
Each time a launch a simple code using this sound library , my sketch !!!
Example 1:
import processing.sound.*;
Amplitude AmplitudeAudio;
void setup() {
size(640, 360);
background(255);
AmplitudeAudio = new Amplitude(this);
}
void draw() {
}
I have:
Could not run the sketch
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: RtApiCore::probeDeviceOpen: system error (kAudioDeviceUnsupportedFormatError) setting sample rate for device (2).
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help → Troubleshooting.
Example 2:
import processing.sound.*;
SoundFile file;
void setup() {
size(640, 360);
background(255);
// Load a soundfile from the /data folder of the sketch and play it back
file = new SoundFile(this, "sample.mp3");
file.play();
}
void draw() {
}
I have the same message:
Could not run the sketch
libc++abi.dylib: terminating with uncaught exception of type std::runtime_error: RtApiCore::probeDeviceOpen: system error (kAudioDeviceUnsupportedFormatError) setting sample rate for device (2).
Could not run the sketch (Target VM failed to initialize).
For more information, read revisions.txt and Help → Troubleshooting.
WHY ???? And on both platform !!!!!!!