Using FFT to Unit Test a Music Player
The phase vocoder algorithm used with overlapped FFT frames might easily catch certain kinds of discontinuities in pure sine waves.

If the audio file is compressed, note that this process itself may add certain kinds of distortion.  So you would need to find an experimental threshold.