Loading buffer~ with an external file?

wonderchild's icon

Does anyone have experience with loading a buffer from a custom Juce GUi.

The standard Rnbo VST export shows an "Open" button to load files. Something similar to this possible in juce, producer?

Is this the starting point?

public:

    DataRefPropertyComp (const String& name, JuceAudioProcessor& p, RNBOAudioProcessorEditor * editor)

    : PropertyComponent(name), owner (p), editor(editor), label(), _button("load")

    {

_button.addListener(this);

_label.setText (p.loadedDataRefFile(name), juce::dontSendNotification);

addAndMakeVisible (_label);

addAndMakeVisible (_button);

    }

Thanks guys<