ChucK Audio Input/Output Error in Ubuntu

3.1k Views Asked by At

I installed ChucK in my Ubuntu 12.0.4 VirtualBox. When I started the miniAudicle Virtual Machine, I got a pop up error message

"The Virtual Machine appears to be hanging.......Abort the current shred? Cancel or Abort button"

I seem can not click either button, the error message will keep popping up. and the console log message:

[chuck]: RtApiAlsa::callbackEvent: audio read error, Input/Output error.

I did:

chuck test.ck

[chuck]: (via rtaudio): no devices found for compiled audio APIs!

[chuck]: cannot initialize audio device (try using --silent/-s)

I have upgraded the VirtualBox but still the same.

Please help.

Thanks.

hc.

2

There are 2 best solutions below

2
On

Have you tried changing the audio settings of the VirtualBox machine? I believe it's default is ALSA but it could be set to PulseAudio. You could also try some driver settings.

4
On

The Canonical man page for chucK explains the problem:

Use chuck for jack audio interfaces, chuck.alsa to access alsa devices, and chuck.oss to access oss devices.

Thus, the default audio server is actually the Jack Audio Connection Kit (JACK), so you either need to install it:

$ sudo apt-get update && sudo apt-get -y install jackd

and then of course you need to figure out how to use it. It's a great audio server, but is a little bit more geared towards audio professionals than towards the average user.

…or you need to explicitly state the audio server you want to use— either chuck.alsa for ALSA or chuck.oss for OSS.

Assuming you are running Ubuntu (and not a flavor like Lubuntu), you are more likely running PulseAudio (certainly not OSS). That being said, you have the following options:

  1. Disable PulseAudio (which falls back to ALSA) like so: pasuspender -- chuck.alsa test.ck (this is my recommended ideal solution).
  2. Get rid of PulseAudio and run chuck.alsa (I'm not a big fan of PulseAudio anyways, but that's a matter of personal opinion).
  3. You could build chuck 1.3.1.3 (Trusty is currently on 1.2.0.8!) which better supports PulseAudio (harder to maintain since your package manager can't update it for you).