Skip to contentSkip to conversation

share/smix pcm plugin [was [linux-audio-dev] Audio routing issues for linux..]

DISCUSSION Joern Nettingsmeier 1 participant 1 message Jun 10, 2002 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

hi !

Quoted 1 line · Paul Davis

[allowing multiple apps to play at the same time (esound-style) on hardware that does not support multi-open]

Quoted 4 lines

* ALSA already has the "share" PCM device type which allows multiple access to the same underlying hardware. It hasn't been tested very much, but it does basically work.

i think it does not do this. from the docs:

This plugin allows sharing of multiple channels with more clients. The access to each channel is exlusive (samples are not mixed together).

                                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

It means, if the channel zero is used with first client, the channel cannot be used with second one.
If you are looking for a mixing plugin, use the smix plugin *unknown reference!* .

^^^^^^^^^^^^^^^^^^^^
it seems the share device as many people need it is not yet implemented. i don't know how hard this is or what the problems are. alsa gurus ?

***

side question: if the alsa-lib provided "software multi-open" and software mixing as a plugin that uses the hw: pcm device for output (i.e. without further processing), would that increase latency compared to direct hw: access ?

regards,

jörn

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink