On Fri, May 16, 2008 at 9:12 PM, Ashish Shukla आशीष शुक्ल <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > >>>>>> Tanveer Singh writes: > > Tanveer> One question though, in windows if application A is playing > something, and I > Tanveer> start application B which plays some other sound, I usually hear > a mix of > Tanveer> both through the speakers, can such a thing happen in linux too? > Tanveer> Just speculating. > > This is what sound servers are invented for ? Multiplexing. Instead of > your app, sound servers open your sound card device file, and your app > communicates with those sound servers over TCP|UDP/IP, Unix domain > sockets, or any other IPC or network protocol you can think > of. ESounD/aRTSd/jackd/pulseaudio/nasd etc... are sound servers. But the > good (or bad) thing is that there is no standard protocol for > communication with sound servers, so you need to hack for each sound > server. > > And each sound server has its own pros/cons. And some sound servers even > expose themselves as an ALSA plugin, PulseAudio is one such sound > server. So if your app understands ALSA, all audio data is routed to > PulseAudio via PulseAudio's ALSA plugin. So your ALSA app can use > PulseAudio without being aware of PulseAudio :) . > > BtW, there is another sound system, known as OSS[1] which is the > standard sound system in Unix (FreeBSD uses OSS). So if you're writing a > cross-platform app, you need to target OSS. > > So the answer to query is you need to chose a appropriate sound server. >
<rant> For something so fundamental to an OS (playing multiple sounds without giving up), the *ideal* right answer would be "It works out of the box".. Sadly goes to show that the Linux flock is still quite some distance away from the promised land.. </rant> -- Anupam _______________________________________________ ilugd mailinglist -- ilugd@lists.linux-delhi.org http://frodo.hserus.net/mailman/listinfo/ilugd Next Event: http://freed.in - February 22-24, 2008 Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/ilugd@lists.linux-delhi.org/