On Mon, 1 Apr 2002, joy ping wrote:

> http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html#pcm_plugins
>
> this is a doxygen created documentation of alsa-lib. you could define
> any of these plugins, configurations in your .asoundrc. you should also
> take a look in asoundrc.txt which comes with your alsa-lib. there are some
> usefull examples, and some more plugins not mentioned in the
> api-documentation. i started to write a kind of asoundrc-mini-howto but
> doesnt finished it till yet, cause of lack of time. (a first version is at:
> http://alsa.opensrc.org/index.php?page=AlsaTips).
>
> as i recognized now, its NOT possible to play multiple streams on/to
> aserver (someone should correct me if i'm wrong), but you can use it to
> play soundstreams over a network or socket to a given pcm-device.
>
> at first the server and controldevice have to be defined as for example:
>
> ctl.shm_test {
>       type shm
>       server server_test
>       ctl ens1371
> }
>
> server.server_test {
>       host localhost
>       socket '/tmp/alsa.sock'
> }
>
>
> then the shared memory device:
>
> pcm.shm_test {
>       type shm
>       server server_test
>       pcm ens1371
> }
>
> pcm must be a real-device where the server is running!
>
> then you have to start aserver with the defined server name:
>
> aserver server_test
>
> after this you can play (or record?) from/to the server as for example:
>
> aplay -D shm_test test.wav
>
> i do not really know for what this is good for in the current state, but
> maybe a real shared access is possible in future (or now with some hidden
> options?), you have to try out.
>
> for shared access off different apps to one pcm-device i recommend to use
> jack, alsaplayer and ecasound has a plugin for jack and maybe some more
> apps in a near future.
>

Hmm.. I was thinking more about using many oss apps at the same time.

What's wrong with allowing same soundcard opened by multiple programs
and the streams from them mixed (in sw or hw) IN alsa?

This way you could use many oss/alsa apps directly without soundservers or
other extra layers..

If I would be interested implementing something like this, where should I
start looking at the code..?


Thanks for your comments :)


- Pasi Kärkkäinen

                                   ^
                                .     .
                                 Linux
                              /    -    \
                             Choice.of.the
                           .Next.Generation.


_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to