LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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

Reply
 
Search this Thread
Old 06-16-2008, 04:12 AM   #1
deepumnit
Member
 
Registered: Dec 2006
Location: NOIDA, India
Distribution: Debian, SUSE, Fedora
Posts: 334
Blog Entries: 1

Rep: Reputation: 31
Can't open audio device. Device or resource busy.


When I play any media file, the sound comes. But when I do it the second time, or may be when I use a different application, I get this error, and I do not get any audio.

What to do? The mplayer code is given below:
Code:
MPlayer 1.0rc2-4.2.3 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 3.00GHz (Family: 15, Model: 4, Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

Playing andagara-alimayya.mp3.
Audio file file format detected.
==========================================================================
Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
Opening /dev/dvb/adapter0/audio0
DVB AUDIO DEVICE: No such file or directory
AO: [null] 44100Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   2.8 (02.8) of 301.0 (05:01.0)  0.6%
 
Old 06-16-2008, 07:22 AM   #2
reddazz
Guru
 
Registered: Nov 2003
Location: N. E. England
Distribution: Fedora, CentOS, Debian
Posts: 16,298

Rep: Reputation: 73
Try configuring your applications or desktop to use alsa and see if that makes a difference.
 
Old 06-16-2008, 09:36 AM   #3
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,040

Rep: Reputation: 373Reputation: 373Reputation: 373Reputation: 373
Quote:
[AO OSS] audio_setup: Can't open audio device /dev/dsp: Device or resource busy
You shouldn't be using OSS, any application using OSS locks the audio device for itself. You need to configure your applications to use either ALSA, ESD, arts or any other thing. I just disable OSS on my kernel, since ALSA can still emulate it for applications that can only work with OSS.

Mplayer can use alsa implicitly if you tell it this way:

Code:
mplayer -ao alsa videofile.avi
But it should just use it instead of oss if it's available, so maybe there's some problem with your kernel or there's just some other program that's implicitly using oss.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Fix For "[ao_alsa] Playback Open Error: Device Or Resource Busy. No coding!! Frank64 Linux - Hardware 2 03-03-2008 04:28 PM
Device or Resource Busy ..by what xrado Linux - General 1 04-23-2005 06:05 AM
Device or Resource Busy deepfrybonanza Linux - Wireless Networking 1 02-18-2005 03:27 PM
Device or resource busy teeno Linux - Newbie 3 03-09-2004 10:12 AM
open /dev/[sound/]dsp: Device or resource busy tearinox Linux - Newbie 1 10-24-2003 06:47 PM


All times are GMT -5. The time now is 02:07 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration