I think that you are refering to binaural beats : http://gnaural.sourceforge.net/
You need a stereo headset to listen to this. There is a frequency in one ear and another one slightly off in the second ear. Your brain then merge the two sine waves and intepret both as a single, low frequency "beat" of the difference.