Open krisfed opened 1 year ago
Hi @krisfed . I pretty sure it is limited here:
Probably we need to improve string handling.
Thank you very much for taking a look! Yes, this seems like an important limitation for one of our users.
Hi! Just wanted to see - have there been any updates on this issue? I realize it is a pretty rare workflow, but it can be a loss of data problem for some...
Hi, Just checking in again - any thoughts on looking into this issue? I know resources are tricky and this is low-frequency, but just wanted to see what the status is.
I'm having issues with this as well. Had to find some workarounds. Commenting only to show support on this.
We noticed that we cannot read back a comment from a WAV file if it is >= 2046 chars long. It seems to be written ok (I can see it with https://mediaarea.net/MediaInfoOnline), but when I try to read it back with sf_get_string, I get back NULL.
Here is some simple reproduction code:
And here is the output:
If I try a smaller length, the comment can be read back correctly.
This was run on my macOS 12.1 machine, but we are seeing this issue on Windows and unix platforms too. We are using the latest official libsndfile 1.1.0 release.