Re: [ecasound] What is the purpose of AUDIO_IO_DEVICE::io_mode == io_readwrite?

From: Kai Vehmanen <kvehmanen@email-addr-hidden>
Date: Thu Aug 04 2011 - 16:55:48 EEST


On Wed, 3 Aug 2011, Lorenz Minder wrote:

> 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

it's analogous to "w+" mode of fopen. Quoting fopen man page:
""w+: Open for reading and writing. The file is created if it does not
exist, otherwise it is truncated. The stream is positioned at the
beginning'of the file.""

Simiarly io_write is similar to "w" mode, i.e. the output is always

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

The main use case for io_readwrite is the ability to open file outputs in
update mode (e.g. to replace only portions of a recording, or continue
recording at the end of an existing file).

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!
Ecasound-list mailing list
Received on Thu Aug 4 20:15:01 2011

This archive was generated by hypermail 2.1.8 : Thu Aug 04 2011 - 20:15:01 EEST