Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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

1 Answer 1

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: https://bugzilla.redhat.com/show_bug.cgi?id=445644

share|improve this answer

Your Answer

 
discard

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.