Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to run an executable that plays a sound with the portaudio library.

when I compile and run the filesystem I get the following error.

Error number: -9985 Error message: Device unavailable

I am wondering how to free up the audio device and run the executable and return the audio device back to the way it was so I can use it with the system.

share|improve this question

Under Ubuntu, the pulseaudio daemon 'hogs' the audio devices. Instead of killing it, you can make it swallow your application's OSS output like this: padsp ./yourApp

If that doesn't work, here's a link bug report on how the fedora guys overcame a similar problem with audacity:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.