I've been trying to play a wav file of a square wave (and eventually a PWM) through my headphones, however I when I look at the output on a scope it is distorted in a very regular manner as if somekind of effect is added on top.

the waveform looks similar to the 1kHz square wave except with a 2kHz sine wave superimposed along with some higher frequency noise