Try hooking up something else with the optical port, like your cable box, if that crackles then I would say its your receiver, if it doesn't then I would say its your apple tv...
your on the rite track, process of elimination is going to help you figure it out, you eliminated the cable, now onto the source, once that is eliminated it is most likely the component that is left and last you check....