Small change to make it work with external waveform reading/writingplugins.