Confusion how to save and restore audio thumbnail

If I wanted to persist audio thumbnail .

Which object should I save to a value tree audioThumbnail or audioThumbnailCache

When you close the plugin ui the thumbnail gets destroyed of course . It’s too slow to read from the source file again.

If it’s just one, then AudioThumbnail. The cache looks like it’s for caching many thumbnails, up to a maximum.

1 Like