Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix rendering of very short sounds #26

Merged
merged 1 commit into from
Jun 23, 2024
Merged

Conversation

agateau
Copy link
Owner

@agateau agateau commented Jun 23, 2024

If the sound is short enough, computeMinMax() for loop would not run at
all because fromIdx == toIdx, causing it to return a MinMax initialized
to the default value.

Force toIdx to be at least fromIdx + 1 to avoid that.

Fixes #21

If the sound is short enough, computeMinMax() for loop would not run at
all because fromIdx == toIdx, causing it to return a MinMax initialized
to the default value.

Force toIdx to be at least fromIdx + 1 to avoid that.

Fixes #21
@agateau agateau enabled auto-merge June 23, 2024 13:33
@agateau agateau merged commit 394f5c8 into master Jun 23, 2024
3 checks passed
@agateau agateau deleted the fix-rendering-of-short-sounds branch June 23, 2024 13:34
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.

White bands in the waveform display (v1.5.0)
1 participant