We are about to switch to a new forum software. Until then we have removed the registration on this forum.
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 !!!!!!!
Answers
i would say it's an mp3 file problem. try another file (preferably one that you know work with minim. does minim have example files?)
this mp3 file works fine with the same code on a other Mac... and anyway that could not explain the first example crash