I’m trying to create an audio plugin that has a button that when clicked, automatically plays a file from a location in my computer, and I’m getting stuck on creating the function that actually plays the file, any help would be great, I’m new to JUCE but trying to learn! Thanks.
You can do the exact same thing in a plug-in, the only difference being that you’ll need to create the AudioSourceChannelInfo object yourself, which you can do very simply like so:
I get that but what I’m getting stuck on is creating the function for the onButtonClick, where it should automatically play a random audio file from my computer.