/** * <summary> * Makes the buzzer volume change over a period of time, frequency stays untouched. * <para> * </para> * </summary> * <param name="volume"> * volume to reach in % * </param> * <param name="duration"> * change 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 volumeMove(int volume, int duration) { if (_func == null) { throw new YoctoApiProxyException("No Buzzer connected"); } return(_func.volumeMove(volume, duration)); }