Loading a sound file causes my sketch not to run

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.

Tagged:
Sign In or Register to comment.