How can draw audio waveform

Hello Guys,
I am playing audio file using AudioSampleBuffer class, now i have tried to draw audio waveform by using “jmap” function in paint. But its not drawing anything. So, which class i have to use?
Can i use jmap function or i have to use AudioThumbnail class?


Take a look at AudioThumbnail class

I have tried to use it by integrating PluginProcessor and PluginEditor file.
I can see audio waveform when i load audio file.
Should it scroll and show live audiowaveform as audio file playing?