/** * <summary> * Adds a new volume transition to the playing sequence. * <para> * Frequency stays untouched: * if frequency is at zero, the transition has no effect. * </para> * <para> * </para> * </summary> * <param name="volume"> * desired volume when the transition is completed, as a percentage. * </param> * <param name="msDuration"> * duration of the volume transition, in milliseconds. * </param> * <returns> * <c>0</c> if the call succeeds. * On failure, throws an exception or returns a negative error code. * </returns> */ public virtual int addVolMoveToPlaySeq(int volume, int msDuration) { if (_func == null) { throw new YoctoApiProxyException("No Buzzer connected"); } return(_func.addVolMoveToPlaySeq(volume, msDuration)); }