sound going off and on when radio cd and sattelite is playing sometimes on 2005 BMW 645Ci

every one or two days when playing the radio etc, sound will start making loud noise like Static then all sound goes
off for hours at a time. Sound returns after car is parked and of for a couple of hours.

Asked by for the 2005 BMW 645Ci