Real Player and XMMS "Cannot open audio device" - SuSE 9 pro
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Real Player and XMMS "Cannot open audio device" - SuSE 9 pro
I regularly use Real Player 8 under SuSE 9 pro, but every time I boot up my computer and start Real Player, I get a message saying "Connot open audio device", with buttons for "OK" and "More Info" If I select "More Info", the message box disappears, but no sign of nay more information appears, I just can't get any sound. I also have similar problems using XMMS.
If I delete and then reinstall my sound card usind YaST, everything works ok until I reboot or log in again, when the prolem occurs again. As the problem does not occur when I log in as root, I'm guessing it could be a file permission problem.
Any help would be appreciated. As I'm no erxpert, please try to use language I'm likely to understand.
Last edited by hand of fate; 03-04-2004 at 04:22 PM.
Does it say "permission denied" after "cannot open audio device"?
If so, it's a permissions issue.
Make sure you have yourself in the audio group, and that the following devices are owned by audio, and have group r/w permissions, with:
chmod g+rw <file>
I've changed all the files you listedc to full permission (ie. read, write, exec) for all users, but the problem still occurs.
When I get the error message, it say that "another application may be using it". As the problem doews not happen fror the root login, it looks like something to do with permission, but doesn't appear to be corrected after changing any of the files you listed.
If you're using KDE, it may be that you're running arts (KDE's sound server), and this has control of your sound card.
Check your KDE setup: control center-> sound and multimedia.
If the "run arts at startup" box is checked, uncheck it, hit "apply", and try XMMS again. (you may need to killall arts or restart KDE for this to take effect)
If that works, but you still want KDE to produce sound (or want more than one program using sound at once), then you need to leave arts enabled, but have Realplayer/XMMS output to arts, not to OSS. THere should be plugins available for both.
Did you ever figure out a solution to the problem? I have the same exact thing and it is driving me bonkers. Every time I come into KDE it gives that same message you referred to.
Don't really know what to say... there are tons of threads about this and similar issues.
To get sound, you need:
The right sound module loaded into the kernel (do a 'lsmod' to see loaded modules)
A program outputting sound to the proper device - usually /dev/dsp- and using the proper method - usually ALSA or OSS.
In KDE, you can configure ARTS to output to your soundcard, and have other programs output to arts - this way, you get sound from different programs at once.
so... check your arts setup under Kmenu->settings->control center->sound & multimedia->sound system. Then check the outputs of your programs to make sure they're sending to arts.
If you hit snags, post back here with DETAILED error messages. I'm still unsure what the exact error message in the above problem was, and so am unsure if it's a permissions issue, a driver issue, or a sound system issue.
1) I have sound. In fact, sound and mp3s work really well in xmms. I have installed ALSA and thought I even have OSS emulation in it.
2) I should say WORKS WELL UNTIL another program competes for audio at the same time. For example, if I open mozilla with xmms pumping out MP3s, xmms will work for a while. However, if I go to a site with sound...BOOM...xmms dies.
3) I looked at the preferences in xmms and it says it is using the OSS driver. I do not know how to do something different. There are other options, but nothing like arts or artsd or artsdsp.
The DETAILED error message is the following popup box:
Cannot open the audio device. Another application may be using it."
This isn't a bug. this is normal. XMMS has control of your soundcard, and nothing else can use it until it's free.
This is why you need to run artsd, and have xmms output to arts - get the xmms-arts plugin.
What is abnormal is that xmms dies - generally, you just don't get sound from other apps, but the one locking the card should continue unaffected.
Search these forums for instructions on setting up arts. There are many threads about it.
Rounan, thanks. I took your advice. I believe this is deeply related to a configuration problem with qt. When I use xmms with the arts plugin, the qt problem rears it's ugly head.
Here is my description of the qt problem (which is causing problems with several programs):
So.... how do we tell RealPlayer to output to ARts? There doesn't appear to be an option for this in the Preferences. There's Linux Native, OSS, and ESound. Is there a Realplayer plugin that gets downloaded for this too?
I have exactly the same problem with exatly the same error message. Thanks for the tip about outputting to Arts by the way, that was really useful with xmms.
Sorry...never did figure this one out. I re-installed my ALSA installation and everything is cool again. I had to play around in KDE Control Center with the Audio settings as well.
If anyone figures this out, please post! The world wants to know! (Or at least I do!)
Running XMMS, it plays find, but when it tries to switch tracks (I'm assuming letting control of the sound for a sec), I get an error like "Cannot Open Audio" or something similar, then here a bunch of 'delayed sounds' (e.g. IMs, email notice, etc.). Is there any way to get this to share the card or something? I don' t know much about how linux sound works, but opened "Volume Control" and see tabs for both OSS and ALSA, both seem to be active (guessing this isn't good).
What's happening is you're using XMMS to play to your soundcard (using either ALSA or OSS - ALSA has an emulation layer for OSS, so if you have ALSA installed, that's what would be used).
Gnome, I believe, uses the ESD sound daemon - this program also wants to control the soundcard. It probably has a timeout, after which it relinquishes control again.
So, what happens is:
XMMS has control, and plays music happily. During this time, ESD tries to generate sound events, but the card is locked by XMMS - so it waits.
XMMS tries to change tracks, and momentarily frees the card
ESD jumps in, plays its queued sounds, and then waits for the timeout before giving up the card again
Meanwhile, XMMS tries to play the next track, finds the card locked, and instead of waiting it gives the "cannot open audio" error.
What you need to do:
make XMMS output to ESD. This way, esd controls all audio, and only one program needs to own the card at a time.
How? It should be an output option. If not, there should be a plugin - there's an xmms-arts plugin for KDE, but I can't find an equivalent for ESD (in gentoo's tree, anyway).
Search the forums. There's definitely an answer here. probably several. I know I've posted information similar to this at least 5 times.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.