Fully Functioning Plugin Audio Player

I was wondering if anyone had information (or even sample code) that they could provide about building a fully functioning audio player widget in my JUCE plugin. I’m aware that there is a tutorial from JUCE that creates a play/pause button and loads in an audio file. While this functionality is good, it’s not enough for my purposes.

I want to make a point-and-play audio player that allows me to select different sections of an audio file. I also want a scrollable cursor with a functioning pause/play button. This would also display the time stamps within the particular audio file.

If anyone has insight into how I could do this or has a code sample, I would greatly appreciate it!

It would appear that you have not yet fully explored the depths of the DemoRunner application, as the AudioPlaybackDemo.h file contains a perfectly cromulant implementation of an audio-file player, with sample rendering, media playback controls, a zoomable thumbnail, and point and click positioning of the playhead …

See $JUCE/examples/DemoRunner for the details, and lets hear how you get along once you’ve grok’ed the AudioPlaybackDemo.h methods …