Menu

#227 The length of output data is not reported for sox_open_mem_write()

open
nobody
None
5
2026-01-22
2022-06-29
Dan
No

Dear developers.

When using the sox_open_mem_write() as the data output, the pre-allocated buffer and its size are passed as the parameters. However, the size of the data written into the buffer does not seem to be reported anywhere.

I would expected it in the output sox_format_t.signal.length, but this value is still 0 (after effects chain is closed, before the output stream is closed).

Is it a bug or did I overlooked something?

Discussion

  • Martin Guy

    Martin Guy - 2026-01-22

    sox_open_mem_write() only creates the file; it doesn't write anything into it.
    You'll find out how much is written from the subsequent calls to sox_write().

     

Log in to post a comment.

MongoDB Logo MongoDB