LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-21-2005, 09:41 AM   #1
mrosati
Member
 
Registered: Nov 2003
Location: Mestre - ITALY
Distribution: Debian sarge
Posts: 132

Rep: Reputation: 15
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
 
Old 09-21-2005, 12:46 PM   #2
foo_bar_foo
Senior Member
 
Registered: Jun 2004
Posts: 2,553

Rep: Reputation: 51
research implementing "dmix" plugin for your card using ~/.asoundrc
 
Old 09-21-2005, 04:04 PM   #3
mrosati
Member
 
Registered: Nov 2003
Location: Mestre - ITALY
Distribution: Debian sarge
Posts: 132

Original Poster
Rep: Reputation: 15
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
 
  


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
Sound in general for ALSA/Digital sources. purelithium Linux - General 1 12-02-2005 01:36 PM
NForce2 + 2.4.22 : Not able to play multiple sound sources muflon Linux - Hardware 0 09-21-2003 01:11 PM
Alsa drivers cannot play more than one sound at a time rsnic Linux - Hardware 5 06-26-2003 05:40 AM
Alsa drivers cannot play mor than one sound at a time rsnic Linux - Distributions 0 06-24-2003 10:36 PM
Sound -- can't play to audio sources simultaneously d33pdream Linux - General 4 02-09-2003 10:48 PM


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

Main Menu
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