It sounds like you may have resolved the issue, if it is related to your wifi device. I've had similar experiences with newer wifi and Bluetooth connected devices. Many of the new connectivity standards will allow connectivity of multiple devices. This is where I have seen the symptoms that you describe, including when no music is playing. The popping or intermittent static can be caused by multiple wifi or Bluetooth connections occurring simultaneously.
It's even possible for a single output device to attempt to duplicate its Bluetooth connection, with a single input device, particularly when awaking from a sleep state with no input playing. As it wakes up or as input begins, the device attempts a second connection. If that sounds possible in your situation, easiest solution I've found is to reset the device that is transmitting. Either full reset, or just turn Bluetooth or wifi off and back on again.
Good luck.