LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 05-01-2006, 08:47 AM   #1
jimjamjahaa
Member
 
Registered: Jan 2005
Distribution: (X)Ubuntu Dapper
Posts: 127

Rep: Reputation: 15
sound with XMMS but not with anything else


i have sound working nicely in XMMS but in flash videos, VLC, xine and ePSXe the sound does not work

i am using a breezy server install with fluxbox. not sure what other information to give
 
Old 05-01-2006, 10:10 AM   #2
bulliver
Senior Member
 
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Blog Entries: 4

Rep: Reputation: 78
Start apps that do not work from the cli and read the errors when it tries sound playback ie:
Code:
$ xine <file>
 
Old 05-01-2006, 10:47 AM   #3
jimjamjahaa
Member
 
Registered: Jan 2005
Distribution: (X)Ubuntu Dapper
Posts: 127

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by bulliver
Start apps that do not work from the cli and read the errors when it tries sound playback ie:
Code:
$ xine <file>
from VLC:

[00000303] oss audio output error: cannot open audio device (/dev/dsp)


does that help you?

i have a feeling this is to do with file permissions...
 
Old 05-01-2006, 11:13 AM   #4
brianthegreat
Member
 
Registered: Oct 2005
Posts: 518

Rep: Reputation: 32
You could try killall esd and see if that works but the problem seems to persist somewhere else.
 
Old 05-01-2006, 12:00 PM   #5
jimjamjahaa
Member
 
Registered: Jan 2005
Distribution: (X)Ubuntu Dapper
Posts: 127

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by brianthegreat
You could try killall esd and see if that works but the problem seems to persist somewhere else.
ok i dont know why i didnt try this before but it seems that the file /dev/dsp gets locked when anything that uses sound is running, meaning that only one thing can use sound at a time. which is not very helpful.

however i did just have a good bash on ye olde resident evil which i was most pleased about.

killall esd returns "no process killed"
 
Old 05-01-2006, 12:06 PM   #6
bulliver
Senior Member
 
Registered: Nov 2002
Location: British Columbia, Canada
Distribution: Gentoo x86_64; FreeBSD; OS X
Posts: 3,764
Blog Entries: 4

Rep: Reputation: 78
Quote:
it seems that the file /dev/dsp gets locked when anything that uses sound is running,
Are you using OSS or Alsa? What soundserver are you running if any? I have heard of people having troubles such as yours with arts...

I use alsa and _no_ soundserver, and it works just fine for me. That is, I get simultaneous playback from 2 or more sources...
 
Old 05-01-2006, 03:39 PM   #7
jimjamjahaa
Member
 
Registered: Jan 2005
Distribution: (X)Ubuntu Dapper
Posts: 127

Original Poster
Rep: Reputation: 15
in my process list i can't find alsa or OSS and i wouldnt know what else to look for...

in synaptic alsa says its installed, how can i make sure it is set to start up at boot time?
 
Old 05-03-2006, 11:22 AM   #8
jimjamjahaa
Member
 
Registered: Jan 2005
Distribution: (X)Ubuntu Dapper
Posts: 127

Original Poster
Rep: Reputation: 15
BUMP!

(at least 10 characters lol)
 
Old 05-03-2006, 12:42 PM   #9
herd
LQ Newbie
 
Registered: Apr 2006
Distribution: Debian unstable / ubuntu
Posts: 18

Rep: Reputation: 0
try dmesg | grep -i alsa
 
Old 05-03-2006, 01:33 PM   #10
jimjamjahaa
Member
 
Registered: Jan 2005
Distribution: (X)Ubuntu Dapper
Posts: 127

Original Poster
Rep: Reputation: 15
ok, done, no error, no message of any kind....
 
Old 05-08-2006, 09:33 AM   #11
herd
LQ Newbie
 
Registered: Apr 2006
Distribution: Debian unstable / ubuntu
Posts: 18

Rep: Reputation: 0
Just saw the OSS line and here is the explanation:

OSS is single user only, meaning no two programs can use OSS at the same time.
You have to pick a sound server that supports mixing:
- alsa (not dependant on anything else)
- artsd (KDE related)
- esd (gnome related)
are your options

Probably, a server install will not start any of these, why should it? Servers are headless boxes with no sound in general.

Once you have configured one of these sound servers to be started with bootup,
configure each app to use it. (xmms: plugins/output). The trouble is that all of these servers will try to cooperate with legacy apps that insist on OSS and stopping their output so that a running xmms instance using OSS can block sound output for all others forever.

Some apps like mplayer (command line, not gmplayer) are smart enough to detect which sound server is running and tell you on their console output and gently degrade e.g. from esd to alsa to oss.

hth,

herd
 
  


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
No sound except xmms Riallin Linux - Software 3 11-28-2005 07:24 AM
No sound for xmms! SpiderIRE Linux - Hardware 6 01-27-2005 11:18 AM
Almost no sound...Except for xmms yanik Mandriva 0 07-20-2004 07:19 PM
While XMMS is outputing sound, sound from other programs doesn't output untill after. brynjarh Linux - Newbie 2 07-09-2004 04:39 PM
Sound and XMMS Lostman Linux - Newbie 8 11-20-2003 12:47 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 06:55 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration