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

Thumbnail cache is invalid if time range is short #114

Open
JordanSkousen opened this issue Mar 8, 2022 · 0 comments
Open

Thumbnail cache is invalid if time range is short #114

JordanSkousen opened this issue Mar 8, 2022 · 0 comments

Comments

@JordanSkousen
Copy link

JordanSkousen commented Mar 8, 2022

Hi all,

I've discovered an issue with the TracktionThumbnail::CachedWindow::refillCache function.

From my understanding, if the thumbnail time range is shorter than the CachedWindow has cached, then it begins reading audio level data "on the fly" from the source. This check between using the cache and going "on the fly" is performed here.

When the cache is refilled "on the fly" - the time range is too short for the cache to be used - then it returns invalid data. For some reason, the first several levels are 0. When small adjustments are made to the start of the time range, the thumbnail doesn't always change as expected - the beginning appears to stay in place and the whole thing stretches.
I made a test application to demonstrate this. Here's a screen recording of it:

2022-03-08.01-25-18.mp4

You can download the source files for this test app here: test_tracktion_waveform_bug.zip

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

No branches or pull requests

1 participant