LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   sound can only play 1 stream at a time (https://www.linuxquestions.org/questions/debian-26/sound-can-only-play-1-stream-at-a-time-278508/)

bobbens 01-16-2005 01:11 PM

sound can only play 1 stream at a time
 
So i'm using alsa, technically i have esound installed, but i have no esd. I can only have one stream of sound output at a time. For example, when my xmms song stops playing, kde will then do all its sound alerts. Pretty annoying. Anyone know how to solve this? I'm using alsa and have an nforce2 chipset with nvidia drivers installed.

pevelius 01-16-2005 02:32 PM

you need to configure dmix, i believe:
http://alsa.opensrc.org/index.php?page=DmixPlugin
i havenīt, so i cannot help :(

bobbens 01-17-2005 09:09 AM

i'm having problems getting it to work. I have no ~/.asoundrc, so it's annoying and creating one with a pcm.dmix plugin didn't do anything either. Anyone got this working with the nforce2 drivers? Thanks.

kostian 01-19-2005 04:10 AM

Quote:

Originally posted by bobbens
i'm having problems getting it to work. I have no ~/.asoundrc, so it's annoying and creating one with a pcm.dmix plugin didn't do anything either. Anyone got this working with the nforce2 drivers? Thanks.
Hi.
heres mine:
Code:

pcm.!default {
    type plug
    slave.pcm "dmixer"
}
 
pcm.dsp0 {
    type plug
    slave.pcm "dmixer"
}
 
pcm.dmixer  {
    type dmix
    ipc_key 1024
    slave {
        pcm "hw:0,0"
        period_time 0
        period_size 1024
        buffer_size 32768
        #periods 128
        #rate 44100
    }
    bindings {
        0 0
        1 1
    }
}
 
ctl.mixer0 {
    type hw
    card 0
}

and for xmms/bmp select "default" for audio device in alsa plugin configuration and turn off mmap mode. in mplayer.conf ao=alsa.

bobbens 01-19-2005 07:14 AM

thanks, let's see how it works next reboot :P

Moloko 01-19-2005 03:30 PM

NEVER REBOOT LINUX!

bobbens 01-19-2005 03:40 PM

But i like rebooting, makes me feel all powerful and mighty. :P
Nah, just that my computer needs some rest every so often (it seems to be happier after being off for 1 hour or so).

Moloko 01-19-2005 04:08 PM

okay ;)

If you configure alsa properly the asoundrc becomes active instantly. Stop and start a sound to check if it works. Dmix is confusing, but definitely the way to go.

bobbens 01-20-2005 10:52 AM

i love you guys, i got sound to work from multiple sources. Any tips on configuring all programs to use this? I remember reading somewhere that for xmms you had to disable nmap mode or something like that, did that. For vlc, you just have to switch output to alsa. Is there someway to default output to alsa for all apps? Using kde, just curious. And how would i configure kde to use this? Thanks.


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