Slackware This Forum is for the discussion of Slackware Linux.
|
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
05-11-2011, 03:45 PM
|
#16
|
|
Member
Registered: Jul 2010
Posts: 110
Original Poster
Rep:
|
I have now attempted to let two instances of mplayer execute and try to use the audio device. The test fails, the second instance is unable to open the device, from the console output I can see it tries both ALSA as well as OSS, to no avail:
Code:
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
FAAD: compressed input bitrate missing, assuming 128kbit/s!
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio))
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
[AO_ALSA] alsa-lib: pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-16): Device or resource busy
[AO_ALSA] alsa-lib: pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
[AO_ALSA] Playback open error: Device or resource busy
[AO ESD] esd_open_sound failed: Connection timed out
[AO SDL] Samplerate: 44100Hz Channels: Stereo Format s16le
[AO_ALSA] alsa-lib: pcm_hw.c:1293:(snd_pcm_hw_open) open '/dev/snd/pcmC0D0p' failed (-16): Device or resource busy
[AO_ALSA] alsa-lib: pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave
[AO SDL] Unable to open audio: No available audio device
|
|
|
|
05-11-2011, 08:23 PM
|
#17
|
|
Senior Member
Registered: Jul 2007
Distribution: Slackware64-14.0
Posts: 2,212
|
Use
I believe mplayer by default tries to use OSS, and alsa-oss will lock the device. You can also set this in mplayer's config file to avoid passing it explicitly.
|
|
|
1 members found this post helpful.
|
05-11-2011, 08:44 PM
|
#18
|
|
Member
Registered: Jul 2010
Posts: 110
Original Poster
Rep:
|
Quote:
Originally Posted by T3slider
Use
I believe mplayer by default tries to use OSS, and alsa-oss will lock the device. You can also set this in mplayer's config file to avoid passing it explicitly.
|
Great, thanks, that actually worked -- sorry that I didn't realize that myself, that is actually quite trivial. So in other words software mixing does indeed work with ALSA.
Now I only need to know how to make OSS programs work with software mixing.
|
|
|
|
05-11-2011, 09:22 PM
|
#19
|
|
Member
Registered: May 2008
Location: Brooklyn ZOO
Distribution: Slackware64 14.0
Posts: 371
Rep:
|
Great to hear you have software mixing working! I suggested running two instances of mplayer to actually test it, as it is the easiest to work and switch to ALSA. That and that's what I used to test when I was trying to figure things out. I hope you realize that xmms can be made to use ALSA as well, so I'm curious as to what programs you use that use OSS specifically?
|
|
|
|
05-11-2011, 09:25 PM
|
#20
|
|
Senior Member
Registered: Jul 2007
Distribution: Slackware64-14.0
Posts: 2,212
|
Quote:
Originally Posted by malloc
Now I only need to know how to make OSS programs work with software mixing.
|
It won't unless you run it through a sound server (like phonon or arts or pulse or esd etc.). You should set everything you can to output via ALSA explicitly. If you have an app that will ONLY use OSS then you can start sound from one app that uses ALSA, then start the OSS app and it shouldn't lock the sound device. However, if it is the first app to output sound and it uses OSS then you're out of luck unless it can be routed through a sound server.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 03:54 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|