LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 05-26-2003, 07:05 AM   #1
dnar
Member
 
Registered: Feb 2002
Location: Perth, Australia
Distribution: FC5 ::: Coyote ::: SCO Unixware :::
Posts: 201

Rep: Reputation: 30
Playing 2 audio files simulatanously with Alsa


I installed Alsa today, thinking Alsa allowed two concurrent audio streams to be played to a single card. This appears not so, or at least with my config.

I am running the latest freshrpm Alsa modules, my sound device is the Ensonique ES1371.

Am I mistaken, or can Alsa play two simultanous sound streams, for instance an MP3 using XMMS and desktop sounds/Gaim sound events in particular?

Cheers.
 
Old 05-26-2003, 07:24 AM   #2
kazuni
Member
 
Registered: May 2003
Location: Hong Kong
Distribution: Android on HTC Hero
Posts: 256

Rep: Reputation: 30
i am not sure, but i have a SB Live! which uses the emu10k1 module - it runs simutaneous sounds no problem (i ran 2 X server sessions - one with root and one with other users and they both play mp3s using xmms at the same time with no problem)

try look at the control centre for redhat and you should be able to find settings within the sound modules
 
Old 05-26-2003, 07:26 AM   #3
dnar
Member
 
Registered: Feb 2002
Location: Perth, Australia
Distribution: FC5 ::: Coyote ::: SCO Unixware :::
Posts: 201

Original Poster
Rep: Reputation: 30
RH did not ship with Alsa, rather OSS so it has no controls for such things.

Thanks for you replay anyway... So at least with your sound card, simultaneous streams are played and mixed yes?
 
Old 05-26-2003, 07:34 AM   #4
kazuni
Member
 
Registered: May 2003
Location: Hong Kong
Distribution: Android on HTC Hero
Posts: 256

Rep: Reputation: 30
yeah, that's what i was saying.. even tho that didn't do you any good -_- (i am using SuSE8.2 btw, recompiled kernel 2.4.20-4GB-athlon)
 
Old 05-26-2003, 07:42 AM   #5
dnar
Member
 
Registered: Feb 2002
Location: Perth, Australia
Distribution: FC5 ::: Coyote ::: SCO Unixware :::
Posts: 201

Original Poster
Rep: Reputation: 30
Ok, I suspect my card does not support hardware mixing. I'll do a little more digging through mailing lists etc, I may have to upgrade to a nicer card
 
Old 05-26-2003, 08:00 AM   #6
dnar
Member
 
Registered: Feb 2002
Location: Perth, Australia
Distribution: FC5 ::: Coyote ::: SCO Unixware :::
Posts: 201

Original Poster
Rep: Reputation: 30
Ok, I got it to work.

The SoundBlaster PCI 128 (Ens1371) does support 2 streams, via 2 x DAC's.

I found that I could initiate 2 concurrent streams like so:-
Code:
aplay -D hw:0,0 test1.wav &
aplay -D hw:0,1 test2.wav
That is the 1st stream to DAC 1 (hw:0,0) and the 2nd to DAC 2 (hw:0,1). I then found that the Alsa plugin for XMMS allows configuration for either DAC. I set XMMS to use DAC 1 (it used DAC 2 by default). Now I have conccurrent sounds from XMMS and my desktop/applications! w00t!

Thanks for your help.
 
  


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
Background noise while playing audio files Arturo007 Linux - Hardware 2 10-12-2005 05:48 PM
Playing rm Real Audio files? phlyersphan Linux - Software 7 08-23-2004 02:12 PM
Extreme Delay playing Audio/Video [Kernel 2.6/ALSA] Euphorix Linux - Software 0 12-20-2003 11:02 PM
Playing Audio Files in Redhat 7.2 newbie2linux Linux - Newbie 2 12-04-2003 03:52 PM
playing real audio files gadhiraju Linux - General 2 09-04-2001 05:36 AM


All times are GMT -5. The time now is 05:29 AM.

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