AudioThumbnail with sample buffer for source?

I’ve never needed to draw an audio thumbnail but now that I do, I took a look at the AudioThumbnail class and it seems like it only wants a file as a source.

Is there really no way to use a sample buffer as a source?

Am I missing something?