tinyosc icon indicating copy to clipboard operation
tinyosc copied to clipboard

Fix bug in tosc_reset

Open cmoore42 opened this issue 2 years ago • 0 comments

tosc_reset was operating on offsets based on the location of the format (o->format). When it came time to adjust the marker location to a multiple of 4 bytes it adjusted that index to a multiple of 4 bytes, which gives you a location aligned relative to o->format. But the location needs aligned relative to the entire buffer.

This change re-writes tosc_reset to operate entirely relative to the buffer start rather than to the start of the format.

cmoore42 avatar Feb 20 '23 17:02 cmoore42