Look here, this might’ve helped you:
www.juce.com/doc/tutorial_looping_audio_sample_buffer
Also here it’s discussed:
For the waveform you can use AudioVisualiserComponent
Look here, this might’ve helped you:
www.juce.com/doc/tutorial_looping_audio_sample_buffer
Also here it’s discussed:
For the waveform you can use AudioVisualiserComponent