General dynamic scaling theory of critical ultrasonic attenuation and dispersion