>1) Is it necessary to open the device twice, as opposed to opening
>it once, passing SND_PCM_STREAM_PLAYBACK|SND_PCM_STREAM_CAPTURE instead?

yes it is. ALSA PCM streams are uni-directional, always. we've played
with it the other way, and there were some problems.

>2) Doesn't the link function do some sort of buffer
>synchronization between the two handles (read and write) so that you have

no. all the link function does is to ensure that stop/prepare/start
operations on one handle propagate to the other. it does not do any
kind of synchronization between the streams.

>3) What behavior differences does one have if one doesn't link the two
>handles and one opens the device twice, as mentioned above?

you have to explicitly stop/prepare/start both streams.

--p

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

Reply via email to