/// <summary>
 ///     Create a notification object linked to the enum value
 /// </summary>
 /// <param name="eEnum"></param>
 /// <param name="icon"></param>
 /// <param name="sound"></param>
 /// <returns></returns>
 public static INotification CreateNotification(NotificationTypeEnum eEnum, NotifyIcon icon, CachedSound sound)
 {
     switch (eEnum)
     {
         case NotificationTypeEnum.DefaultWindowsNotification:
             return new NotificationWindows(icon);
         case NotificationTypeEnum.SoundNotification:
             return new NotificationSound();
         case NotificationTypeEnum.NoNotification:
             return new NotificationNone();
         default:
             throw new ArgumentOutOfRangeException(nameof(eEnum), eEnum, null);
     }
 }
 public void PlaySoundWav(CachedSound wavSound)
 {
     AddMixerInput(new CachedSoundSampleProvider(wavSound));
 }
Example #3
0
 public CustomSoundChangedEvent(CachedSound prevSound, CachedSound newSound)
 {
     PrevSound = prevSound;
     NewSound = newSound;
 }
 public CachedSoundWaveStream(CachedSound cachedSound)
 {
     this._cachedSound = cachedSound;
 }
 public CachedSoundSampleProvider(CachedSound cachedSound)
 {
     this._cachedSound = cachedSound;
 }
 public CachedSoundWaveStream(CachedSound cachedSound)
 {
     this._cachedSound = cachedSound;
 }
 public void PlaySoundWav(CachedSound wavSound)
 {
     AddMixerInput(new CachedSoundSampleProvider(wavSound));
 }
Example #8
0
 public CachedSoundSampleProvider(CachedSound cachedSound)
 {
     this._cachedSound = cachedSound;
 }