Adaptive real-time control for three-dimensional active attenuation of sound