It's both. Usually, only the DC component is what ultimately matters, but it's possible to make real use of the AC component. For example, if you have a piezo attached to the PWM output of a microcontroller, you could use low duty cycles to reduce the volume.