Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-23-2004, 03:20 PM   #1
LQ Newbie
Registered: May 2004
Location: Wisconsin, USA
Distribution: Debian (Sarge) and Fedora Core 3
Posts: 18

Rep: Reputation: 0
XMMS sound output stopped by other programs' sounds when a song is finished

I'm using XMMS to play my music. At the same time I have various other programs running, including Gaim. The sounds made by these programs, such as when users are logging on or off, is not heard while the current song is playing. But when the song stops, XMMS reports an error, complaining that another program is using the soundcard. At this point, all of the various dings Gaim wanted to make happen all in a row. The worst part of this problem, though, is that XMMS doesn't continue playing songs. I have to manually select another song for it to start. Is there any way I can help XMMS to keep exclusive access to the soundcard while it is switching songs?
Old 05-23-2004, 03:45 PM   #2
Registered: Aug 2003
Location: Edinburgh, Scotland
Distribution: Gentoo
Posts: 246

Rep: Reputation: 30
I don't think it is possible to make XMMS keep exclusive control however if you can configure GNOME (and KDE, etc.) to send sound to /dev/null instead of /dev/dsp then it should effectively disable sound output by these programs.

A slightly outlandish idea which just occurred to me is to run XMMS from a script which renames /dev/dsp to something else just before starting XMMS. XMMS is then set up to send sound to this new name however other software will try to use the old name and fail. After XMMS quits the file is renamed back and other software regains the ability to use the soundcard. I imagine a shell script like the following might do the trick (although I haven't tested it):

mv /dev/dsp /dev/xmms-dsp
mv /dev/xmms-dsp /dev/dsp

This might have to be SUID root in order to rename /dev/dsp depending on your setup.
Old 05-27-2004, 08:28 PM   #3
LQ Newbie
Registered: May 2004
Location: Delaware, USA
Posts: 8

Rep: Reputation: 0
set XMMS to use ARTS

I was having the same problem until a few minutes ago.

KDE uses Arts as a sound server and it locks the soundcard - so nothing can make sound while arts is on it, and arts can't when something else is on it.

select / install the arts output plugin for XMMS [not .6 as that crashes XMMS, i use .7something]

now i have GAIM sounds, email sounds, and everything - concurrently!

i am new at this, but i guess if you use KDE it is best to have all apps use Arts for sound output if possible. just my clueless impression.

Last edited by chrisbkillian; 05-27-2004 at 08:32 PM.


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
xmms stop after every song DropSig Linux - Software 2 10-16-2005 11:32 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
System and Gaim Sounds but no sound in XMMS, mplayer or totem. Horizon111 Linux - Software 1 04-20-2004 09:22 PM
My sound sounds like snow when trying to listen to xmms MultiUser Linux - Newbie 2 03-25-2004 08:28 AM
Redhat 9.0 XMMS Sound Output davnetuk Linux - Software 5 06-14-2003 08:36 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:05 AM.

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