Switch to PWM output and add support for setting output volume and monitoring input volume.