sox-users@lists.sourceforge.net unofficial mirror
 help / color / mirror / code / Atom feed
From: Jan Stary <hans@stare.cz>
To: sox-users@lists.sourceforge.net
Subject: Re: Incorrect work of sox_open_memstream_write with memstream buffer and buffersize
Date: Sat, 24 Jul 2021 12:43:50 +0200	[thread overview]
Message-ID: <YPvu5jQo5c2SQqrM@www.stare.cz> (raw)
In-Reply-To: <OS3PR01MB5976D18BA9DA7B8114F1E583C1E59@OS3PR01MB5976.jpnprd01.prod.outlook.com>

On Jul 23 01:43:36, hisunzhenliang@outlook.com wrote:
> Opened by sox_open_memstream_write function,the buffer and buffersize will work incorrectly when seeking back。
> 
> For example, when opening buffer with sox_open_memstream_write to get a wav format output,wav handler's  stopwrite function will seek back to the beginning to rewrite wav header. In this situation,after closing ft,I assume that I can get whole data from buff and buffsize,but I can only get the wav header.
> 
> I don't think it would be better to have seek back to the end when you need to rewrite data with a seek operation.

Without seeing the actual code,
it's hard to try to help.



_______________________________________________
Sox-users mailing list
Sox-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sox-users

  reply	other threads:[~2021-07-24 10:44 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-23  1:43 Incorrect work of sox_open_memstream_write with memstream buffer and buffersize Sun Zhenliang
2021-07-24 10:43 ` Jan Stary [this message]
2021-07-26  2:09   ` 回复: " Sun Zhenliang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-list from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://lists.sourceforge.net/lists/listinfo/sox-users

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YPvu5jQo5c2SQqrM@www.stare.cz \
    --to=sox-users@lists.sourceforge.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/sox.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).