I was recording on my computer about a month ago

Guitar plugged into amp -> headphone output => line in on my sound card

and it worked just fine, perfect, couldnt get any better.

Now i tried recording, same setup I am pretty sure and i keep getting static/crap when i play too hard or turn on distortion and it sounds horrible.

I am using audacity, but even in sound recorder or with guitar track pro 3 i still got the same thing.

Well actually with guitar track 3 i would get the static but as soon as i turned on the distortion it was perfect...lol

Any ideas?