The headphone jack comming out of the back of you amp is most likely stereo. This means its set up for a TRS (Tip-Ring-Sleeve) sheilded cable. The normal guitar cable is TS (Tip-Sleeve)
The Line In of the sound card is most assuredly of the TRS type.
Bottom Line, try using a sheilded stereo cable and see if it solves the problem. These cables are available at the rat shack.