Пример #1
0
 /// <summary>
 /// Play With PWM Channel.
 /// </summary>
 /// <param name="rtttl">Ring Tone Transfer Language.</param>
 /// <param name="pwmChannel">PWM channel.</param>
 public static void PlayWithPwmChannel(this Rtttl rtttl, PwmChannel pwmChannel)
 {
     rtttl.Play(new PwmChannelPlayer(pwmChannel));
 }
Пример #2
0
 public static void PlayWithConsoleBeep(this Rtttl rtttl)
 {
     rtttl.Play(new ConsoleBeepPlayer());
 }
Пример #3
0
 /// <summary>
 /// Play With PWM Channel.
 /// </summary>
 /// <param name="rtttl">Ring Tone Transfer Language.</param>
 /// <param name="chip">The PWM chip number.</param>
 /// <param name="channel">The PWM channel number.</param>
 public static void PlayWithPwmChannel(this Rtttl rtttl, int chip, int channel)
 {
     rtttl.Play(new PwmChannelPlayer(PwmChannel.Create(chip, channel)));
 }