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.

____
joy

On Mon, 1 Apr 2002, [ISO-8859-1] Pasi Kärkkäinen wrote:

>
> On Sun, 31 Mar 2002, joy ping wrote:
>
> > try jack (http://jackit.sourceforge.net/).
> >
> > also ALSA has a kind of soundserver, look in the api-'docs' how to set it
> > up.
> >
>
> I browsed the API docs from the website (but that was for alsa 0.5?) but
> couldn't find anything about this. Can you tell me what to search for
> exactly..?
>
> Thanks!
>
>
> - Pasi Kärkkäinen
>
>                                    ^
>                                 .     .
>                                  Linux
>                               /    -    \
>                              Choice.of.the
>                            .Next.Generation.
>
>
> _______________________________________________
> Alsa-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/alsa-user
>


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

Reply via email to