/** * <summary> * Makes the buzzer frequency change over a period of time. * <para> * </para> * </summary> * <param name="frequency"> * frequency to reach, in hertz. A frequency under 25Hz stops the buzzer. * </param> * <param name="duration"> * pulse duration in milliseconds * </param> * <returns> * <c>0</c> if the call succeeds. * </returns> * <para> * On failure, throws an exception or returns a negative error code. * </para> */ public virtual int freqMove(int frequency, int duration) { if (_func == null) { throw new YoctoApiProxyException("No Buzzer connected"); } return(_func.freqMove(frequency, duration)); }