What is the purpose of AUDIO_IO_DEVICE::io_mode == io_readwrite?

Lorenz Minder <[email protected]>
Newsgroups gmane.comp.audio.ecasound.general
Message-ID <[email protected]>
Hi,

I have a question regarding the io_mode for an audio device:  What is
the purpose of the io_readwrite mode?  I was assuming that devices
supporting that mode can then be opened in full duplex mode, if they are
used as both input and output.  This would presumably make it easier
(possible?) to synchronize the input stream with the output stream.
However, if it's implemented, and I do

  ./ecasound -i mydevice -o mydevice

ecasound will open two instances of that device, and open the output
device with the io_readwrite mode (the input will be opened as io_read).
It will, however, never attempt to read from that device.  If
io_readwrite support is disabled, it will open the output device in
io_write mode, but I didn't notice any other difference in behavior.

So what is the purpose if io_readwrite in that context, and how is a
device supposed to handle that?

Best,
--Lorenz

------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Ecasound-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ecasound-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.