Theory of ultrasonic attenuation in metals and magneto-acoustic oscillations