Skip to content

Fix corrupted waveform data due to incorrect header offset - #42

Open
MinSeungHyun wants to merge 1 commit into
ryanheise:masterfrom
silgam:fix/41
Open

Fix corrupted waveform data due to incorrect header offset#42
MinSeungHyun wants to merge 1 commit into
ryanheise:masterfrom
silgam:fix/41

Conversation

@MinSeungHyun

Copy link
Copy Markdown

Fixes #41

The parse method was incorrectly using headerLength ~/ 2 as the byte
offset when creating Int16List.view, causing waveform data to be read
from the middle of the header instead of after it. This resulted in
corrupted min/max pairs where min could be greater than max.

Fixed by using headerLength directly as the byte offset.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Corrupted waveform data due to incorrect header offset

1 participant