Add audio file player node for plugin host example

It would be quite useful to have an internal audio file player filter in the plugin host example. There probably are 3rd party plugins that just play a file, but it’s an additional hassle to find one that would also be cross platform. It also isn’t as convenient as could be desired to use a sampler plugin instrument for this.

I just worked a couple of hours myself to add such an internal filter for the plugin host and it wasn’t too bad. I am sure the Juce developers could add a better one in a fraction of that time… :wink:

Totally agree on this. My current solution is a cobbled together straightforward port of the audio file player from the JUCE demo into a plugin. This would be an awesome official utility plugin + example project for the JUCE team to make!

Agreed! If only there were more hours in the day!

I have just implemented this and also a recorder.
Once it is stable and the code is clean enough, I could contribute it.

That’d be awesome :slight_smile:

Nice to know there is interest to have this added! :slight_smile:

I could also show my code, but it doesn’t do anything special at the moment. It doesn’t currently resample files that are at a different samplerate than the host is running at, and there’s no IO thread used for the file reading. Naughty me. But SSD drives seem to handle the playback fine anyway… :sweat: Also the GUI is just a FileNameComponent at the moment.

I was just trying to do the same. I got curious about JUCE just recently and I’ve been fooling around with it for two weeks for now as a side project, but it is a bit hard to grasp how to combine these two examples, so I’d very much appreciate any code that I could have a look at how to implement such a feature.

If you aren’t too shy about sharing your code, no matter how crude, it would really give me a good kickstart here!

I would also appreciate a working example of this one! Thanks for any possible help

@zax and @quematik:
Sorry, I missed your questions. Would the example still be helpful for you?
It still isn’t nice cleaned up code, but working…

yes, it would be, @harryg

OK, here we go:
example branch pluginhost-with-audioplayer
I invested some time to provide a clean example, but it might not be perfect :wink:
Also documentation is poor…

My example’s current status is more sophisticated, but partially in experimental or ugly state.
I can publish it as soon as it is cleaner.
Additionally, it will only fully work with the revised multibus API.
It will be including a multifile player with audio thumbnails and a recorder.

2 Likes

@harryg thanks a lot for this, mate!

@harryg

I actually managed to produce my own, but it’ll be interesting to see how the differ :slight_smile:

Anyhow, thanks for the reply!

Hi, I finally my multi file audio player and recorder is in a clean state and published.
See new thread: https://forum.juce.com/t/audio-plugin-host-with-multi-file-audio-player-and-recorder