How to develop a plug-in that supports opening local audio files and outputting them to the host

How to develop a plug-in that supports opening local audio files and outputting them to the host.The target plugin needs to support opening mp3, similar to a player for the host.I use juce_AudioFormatReader from JUCE.Then what should I do in processAudio(Steinberg::Vst::ProcessData &data) function?