The invention relates to a shockwave apparatus for treating a human or animal body, the pneumatic drive of which comprises a motor-driven compressor. According to the invention, the rotation rate of the motor is controlled in order to set a certain compressor pressure.