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
Chunk represents the header and containt of a sub block
Instead it also includes the padding byte, which makes parsing more complex as you need to check for a remaining byte and ignore it instead of being able to simply rely on io.EOF.
I would instead suggest that the extra byte is handled by Chunk.Drain.
The text was updated successfully, but these errors were encountered:
stevenh
added a commit
to stevenh/riff
that referenced
this issue
Apr 6, 2023
Fix chunk.Size to match the definition, removing the additional padding
byte which was previously present. This allows consumers to create
cleaner parsing which relies on io.EOF instead of having to also check
for a padding byte.
Also:
* Fix some typos.
* Clarify that IsFullyRead doesn't include the padding byte.
Fixesgo-audio#2
When fixing the parsing in wav for DecodeListChunk I tripped over the fact that Chunk.Size doesn't represent the head value as described:
Instead it also includes the padding byte, which makes parsing more complex as you need to check for a remaining byte and ignore it instead of being able to simply rely on io.EOF.
I would instead suggest that the extra byte is handled by Chunk.Drain.
The text was updated successfully, but these errors were encountered: