Skip to contentSkip to conversation

Playing Multiple Audio streams

DISCUSSION Jeff McBride 4 participants 4 messages Mar 3, 2000 – Mar 15, 2000 Sound

lore
Share & tools
lore
#0 lore raw

Hello,

Are there any good ways to play several audio sources simultaneously? If an application wants to be playing say, several wave files overtop of each other, does it have to mix them itself and then play one stream. Or are there other drives, or possibly a daemon of some kind to do it?

And how about multiple applications that are unaware of each other playing at the same time?

Thanks for any help,

Jeff

#1 lore raw
Quoted 8 lines · Jeff McBride

Hello,

Are there any good ways to play several audio sources simultaneously? If an application wants to be playing say, several wave files overtop of each other, does it have to mix them itself and then play one stream. Or are there other drives, or possibly a daemon of some kind to do it?

Quoted 6 lines

And how about multiple applications that are unaware of each other playing at the same time?

Thanks for any help,

Jeff

EsounD deamon is what you are looking for. However, the apps need to know to use ESD to play...

#2 lore raw
In reply to Jeff McBride
Quoted 13 lines · Thomas Zimmerman
Quoted 11 lines · Jeff McBride

Hello,

Are there any good ways to play several audio sources simultaneously? If an application wants to be playing say, several wave files overtop of each other, does it have to mix them itself and then play one stream. Or are there other drives, or possibly a daemon of some kind to do it?

And how about multiple applications that are unaware of each other playing at the same time?

Quoted 6 lines
Quoted 3 lines

Thanks for any help,

Jeff

EsounD deamon is what you are looking for. However, the apps need to know to use ESD to play...

Or, as long as the application doesn't memory map the sound card DMA buffers (like quake), you can run:

esddsp program args

to reroute audio device calls to the esd server. For example:

esddsp realplay somefile.rm
esddsp vmware winamp.exe somefile.mp3

-- ebm (ricdude at work)

+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
| Eric B. Mitchell         mailto:[email protected] |
| tel: (301) 809 - 3534    Altair Aerospace Corporation |
| tel: (800) 7 - ALTAIR    4201 Northview Dr. Suite 410 |
| fax: (301) 805 - 8122    Bowie, MD  20716             |
+=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+
              ,___
          /"\  / o=\  /"""---==/
         /   \_/  \__/   ---==/ 
         |    //\   || /""TT""/ //\   || ||""\
         |   //  \  ||    ||   //  \  || ||__/
         |  //--=\ |L--/ ||  //--=\ || || "=,
          \      ---==/
           \____---==/
#3 lore raw
In reply to Jeff McBride
Quoted 4 lines · Jeff McBride

Are there any good ways to play several audio sources simultaneously? If an application wants to be playing say, several wave files overtop of each other, does it have to mix them itself and then play one stream. Or are there other drives, or possibly a daemon of some kind to do it?

rplay[1], nas[2], and ESounD[3] can all do this very well.

Quoted 2 lines

And how about multiple applications that are unaware of each other playing at the same time?

rplay and ESoundD both have ways of tricking an application into playing audio via sound servers. i know that both rplay and esd are under development, however, i'm not sure about nas.

-l

[1] http://rplay.doit.org
[2] ftp://ftp.x.org/contrib/audio/nas/
[3] http://www.tux.org/~ricdude/EsounD.html