Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

Loading a sound file causes my sketch not to run

$
0
0

terminate called after throwing an instance of 'std::runtime_error' what(): RtApiAlsa::probeDeviceOpen: pcm device (hw:0,3) won't open for input. Could not run the sketch (Target VM failed to initialize).

Removing this function allows the code to run.

music = new SoundFile(this,"herbert.wav");

I believe this is a compatibility issue with Linux. I'm using Processing 3.2.1, the latest sound library, and Ubuntu 16.04.

I hope someone knows hows to solve this.

Thank you.


Viewing all articles
Browse latest Browse all 2896

Trending Articles