Implement file callback, used in audio and midi-file plugs