On the wave equation with a magnetic potential