LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices



Reply
 
Search this Thread
Old 07-16-2006, 12:45 AM   #1
shadin
Member
 
Registered: Jun 2006
Posts: 44

Rep: Reputation: 15
Two or more processes using the sound device?


I've been searching on here and Google, but apparently the right wording to look for is eluding me. Basically, I'm having issues allowing more than one program to use my sound device. For instance, when listening to music and using GAIM, I get no sound from GAIM until I close the music player, at which point all the GAIM sounds come through at once.

Any help on this would be greatly appreciated. Even if it's simply helping me with a search phrase!
 
Old 07-16-2006, 01:10 AM   #2
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
The search phrase is 'alsa dmix slackware'

There are also various sound servers out there that do software mixing etc for you as well but I use dmix with good results.
 
Old 07-16-2006, 01:11 AM   #3
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
What sound-drivers are you using? ALSA? What desktop?

The question about whether you can use several apps with
audio-output at the same time depends on several factors;
to gain a quick overview this is a good starting point.
http://alsa.opensrc.org/FAQ018


Cheers,
Tink
 
Old 07-17-2006, 08:52 AM   #4
shadin
Member
 
Registered: Jun 2006
Posts: 44

Original Poster
Rep: Reputation: 15
'alsa dmix slackware' was indeed just the phrase! I created the .asoundrc file to enable the dmix plugin, and everything worked great after restarting X.

Here's the contents of the file, just put it in the user home directory:

Code:

pcm.sndmix  {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,0"
        period_time 0
        period_size 1024
        buffer_size 8192
        #periods 128
        rate 44100
    }
    bindings {
        0 0
        1 1
    }
}

pcm.!default {
    type plug
    slave.pcm "sndmix"
}

pcm.dsp0 {
    type plug
    slave.pcm "sndmix"
}

ctl.mixer0 {
    type hw
    card 0
}
Thanks everyone for the help!
 
Old 07-17-2006, 06:59 PM   #5
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,544
Blog Entries: 4

Rep: Reputation: 56
Nice to hear you've had a win
 
  


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 FC5, device detected (Power Mac sound) paz117 Linux - Hardware 8 08-07-2006 05:10 AM
How can I know which processes are using the sound card? Adan Linux - Software 1 01-03-2006 03:36 AM
Wine zombie processes completely kill sound Haiyadragon Linux - Software 4 01-01-2006 04:44 PM
monitoring active processes and identifying the required processes. gajaykrishnan Programming 2 08-13-2004 02:58 AM
no sound from cd player, good sound from audio device test fmickel Linux - Hardware 5 06-04-2004 01:46 PM


All times are GMT -5. The time now is 05:59 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration