LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-13-2005, 10:19 PM   #1
dacpkbeast
LQ Newbie
 
Registered: Apr 2005
Posts: 5

Rep: Reputation: 0
Programs blocking sound


I was wondering how to make it so once I am playing music it isnt blocking the sound card for everything else (for example I would like to listen to music and play games with sound effects) I am using fedora core 3 with KDE, any help is very much appreciated, sorry if this is a dumb question!

edit: also any tips on getting a mic to work would be greatly appreciated (particularly for Teamspeak)

Last edited by dacpkbeast; 05-13-2005 at 10:23 PM.
 
Old 05-13-2005, 10:36 PM   #2
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Use a sound server, like kde's artsd. Then set your music program to use artsd, or if it can't, run the music prog with artsdsp which will force it to use artsd.
 
Old 05-13-2005, 10:40 PM   #3
Jaxn
Member
 
Registered: Apr 2005
Location: Sweden
Distribution: Debian
Posts: 142

Rep: Reputation: 15
If you using sound devices directly, it SHOULD block second program using sound device. That is standard way of using sound in Unix/Linux.
So thats why GNOME and KDE has sound daemons (esd and artsd) that mix sound streams to one device. But your applications need to use that sound daemon, or else they will block on sound device to.

Whith new ALSA sound drivers it's possible to mix sound streams in that system with a configuration file (~/.asound.rc, see ALSA web page). That is usefull, but not that easy.

You should use the new ALSA-drivers and not the old OSS-drivers in kernel. OSS is obsoleted in 2.6 kernel.
 
Old 05-14-2005, 12:03 AM   #4
dacpkbeast
LQ Newbie
 
Registered: Apr 2005
Posts: 5

Original Poster
Rep: Reputation: 0
I tried using artsd by just trying to start xmms like this "artsd xmms" but that didnt work gave me this:
unix_connect: can't connect to server (unix:/tmp/mcop-cpk/localhost_localdomain-10b8-42856cda)
can't register Arts::MidiManager
There are already artsd objects registered, looking if they are active...

Error: Can't add object reference (probably artsd is already running).
If you are sure it is not already running, remove the relevant files:

/tmp/mcop-cpk/Arts_SoundServerV2
/tmp/mcop-cpk/Arts_SoundServer
/tmp/mcop-cpk/Arts_SimpleSoundServer
/tmp/mcop-cpk/Arts_PlayObjectFactory
/tmp/mcop-cpk/Arts_AudioManager
then when i kill artsd and try the command again nothing happens...

also I tried using the alsa asoundrc thing with the dmixer but my sound is still being blocked, and unfortunately I am a bit of a noob so I am not too sure on how to update everything for alsa =\
 
Old 05-15-2005, 09:18 PM   #5
Jaxn
Member
 
Registered: Apr 2005
Location: Sweden
Distribution: Debian
Posts: 142

Rep: Reputation: 15
Try to tell KDE to start artsd. But the messages you have from starting artsd tells me you might have one running already. You prob need to tell xmms to use artsd as output.

It's a deamon program, not an command. It should be started in background. So try

artsd&

instead. That should work, but it's better to tell KDE to start it.

You should prob. not try dmix in ALSA to begin with. Most programs have support for artsd instead of using linux sound device directly.

Do the sound work with any program (does KDE give sounds when opening and closing windows)?
 
Old 05-16-2005, 09:17 AM   #6
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
See this:
http://linuxlab.dk/tipsntricks/pics/xmms-plugins.png
Look for that setting, and run xmms like you usually would.

*Or*

Run "artsdsp xmms"

Also see this:
http://docs.kde.org/en/3.4/kdemultim...r/artsdsp.html
 
  


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
Who's blocking my sound card? cliff76 Linux - Software 3 12-18-2012 12:22 PM
Blocking Specific Programs from Network Access? Trip in VA Linux - Newbie 23 08-06-2006 03:47 PM
KDE blocks sound? cant play sound from other programs. Smurfen Linux - Hardware 1 04-02-2005 08:14 PM
While XMMS is outputing sound, sound from other programs doesn't output untill after. brynjarh Linux - Newbie 2 07-09-2004 05:39 PM
Blocking Chat programs smurf Linux - Networking 2 08-04-2001 08:11 AM


All times are GMT -5. The time now is 05:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration