Is it unlawful to drive with headphones on?

If there is reason to believe that this would interfere with safe operation of a vehicle, a person could be charged with inattentive driving.