Reporting missing media files to the DAW

Is there a way for a sample-based plugin to report to the host if there’s a missing media file?
The scenario is this:

  • User loads an audio file into the sample based instrument/plugin.
  • User saves the session, quits, deletes the audio file.
  • User opens the saved session.
    Without any notification to the host, the session would seemingly open fine, but will not play correctly.
    This is relevant to both VST2 & 3

with VST3 you can ask the host to open up your editor where you can show the relevant information about missing files. Have a look at IComponentHandler2::requestOpenEditor().

Hi Arne,
What about VST2 (still many hosts)?