Forcing a thumbnail to get minmax values again

I have made a new InputSource, InputStream, Audioformat and AudioFormatReader class in order to draw dsp generated audio. Think adding sin waves and modulating the frequency, length and others, and seeing that drawn in realtime. It’s all working fine but it relies upon the thumbnail redrawing itself. For now, the only way I can do it is to create a new source and use setCource of the thumbnail, this happens each time a parameter is modulated by the user, I don;t want to create dynamic memory each time that happens and that source is held as a unique pointer by the thumbnail.

Is there another way I can force a refresh oif the thumbnail? thumbnailCache->Clear() is too hardcode, deletes all cached thumbnails and doesn’t work anyway. thumbnail->clear() will clear the source, requiring a new source be set. I had high hopes for thumbnailCache->removeThumbnail but that simply prevents the wave being drawn, it looks like it expects the minmax values to be there and it returns empty.