LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cannot play sound from different sources at the same time with ALSA (https://www.linuxquestions.org/questions/linux-software-2/cannot-play-sound-from-different-sources-at-the-same-time-with-alsa-365596/)

mrosati 09-21-2005 09:41 AM

cannot play sound from different sources at the same time with ALSA
 
this is my problem:
few days ago i was listening to music with beep-media-player (ALSA output plugin) and at the same time, i opened a link in firefox containing a straming video ready to be plaied by mozilla mplayer plug-in
BUT
the video did not start. i tried to stop beep media player and the video started.
i have tried to do the contrary process, playing mplayer and then playing from beep-media-player but i get this error:
control that:
1. you have selected the right output plugin.
2. other programs are not blocking the sound card.
3. your audio card is configured.

My question is:
it is possible to play different sounds at the same time?? if so, please tell me what to do

here is some boring informations:

My kernel configuration

http://rosi84.altervista.org/config-kernel

system debian gnu/linux sarge kernel 2.5.16
alsa version: 1.0.8-7
sound card: integrated i810

thanks

foo_bar_foo 09-21-2005 12:46 PM

research implementing "dmix" plugin for your card using ~/.asoundrc

mrosati 09-21-2005 04:04 PM

YEAH!!
thank you friend, i have foud how to configure it properly in the alsa website.
i added these lines

Code:

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

 
    pcm.dmixer  {
        type dmix
        ipc_key 1024
        slave {
            pcm "hw:1,0"
            period_time 0
            period_size 1024
            buffer_size 4096
            rate 44100
        }
        bindings {
            0 0
            1 1
        }
    }
 
    ctl.dmixer {
        type hw
        card 0
    }

and now i can play (using alsa) from different sources without any problem!

bye thank you very much


All times are GMT -5. The time now is 11:10 PM.