You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When watermarking a .wav file from stdin, audiowmark stops reading data after all samples have been read. However, there are valid .wav files that contain data after the actual samples. Here is one example:
We can see that test.wav in this example has a RIFF data chunk (which contains the actual samples) but after it there are a few other RIFF chunks. Reading these is not necessary for watermarking the audio, so currently we don't. Actually this behaviour is not explicitly implemented in audiowmark but is caused by how libsndfile implements reading from the pipe (it simply stops reading somewhat after the data chunk).
There are two possible ways to deal with this:
keep it as is, and force the process that provides the data to handle this problem
drain the pipe when watermarking "-" when closing the input file
I slighly prefer (2) because it makes things robust without forcing the user to deal with a few corner cases that occur very infrequently.
The text was updated successfully, but these errors were encountered:
When watermarking a .wav file from stdin,
audiowmark
stops reading data after all samples have been read. However, there are valid .wav files that contain data after the actual samples. Here is one example:We can see that
test.wav
in this example has a RIFFdata
chunk (which contains the actual samples) but after it there are a few other RIFF chunks. Reading these is not necessary for watermarking the audio, so currently we don't. Actually this behaviour is not explicitly implemented inaudiowmark
but is caused by howlibsndfile
implements reading from the pipe (it simply stops reading somewhat after thedata
chunk).There are two possible ways to deal with this:
I slighly prefer (2) because it makes things robust without forcing the user to deal with a few corner cases that occur very infrequently.
The text was updated successfully, but these errors were encountered: