Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ChucK Audio Input/Output Error in Ubuntu

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.

like image 849
hangee Avatar asked Oct 29 '13 16:10

hangee


People also ask

What causes input output error Linux?

Input/Output errors during filesystem access attempts generally mean hardware issues. Type dmesg and check the last few lines of output. If the disc or the connection to it is failing, it'll be noted there. this is probably caused by disk hardware issues and the dmesg output is the right place to check this.

What causes input output error?

Reasons for I/O Device ErrorThe computer USB port or USB card reader is damaged or broken. The computer storage device driver is outdated, damaged or incompatible with your attached device. The external hard drive, memory card or USB drive is recognized with a wrong drive letter.


1 Answers

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).
like image 112
wxl Avatar answered Oct 03 '22 11:10

wxl