Make the wave plug-in use an AudioToolbox function to check to see if a file is a wave file.
Some minor work on the AIFF plug-in.