Thanks for you help Gabreil, I have produced some outputs, but cannot be totally sure that they are correct.
These are the things I want to output (if possible) from the psychoacoustic analysis:
-Spectrum of Audio (fft)
-Energy in perceptual domain
-Spread energy in perceptual domain
-Tonality Index
-Masking Threshold
-Threshold and Absolute Threshold
Could you clarify with me of their whereabouts in the code please?
Also, if I was to provide LAME.exe with only 1152 PCM samples (1 audio frame) at a time, would the psycho analysis for the above elements give me plots that I can interrupt sensibly frame by frame?