ao_pulse: convert to new AO API