コード例 #1
0
 /// <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);
     }
 }
コード例 #2
0
 public void PlaySoundWav(CachedSound wavSound)
 {
     AddMixerInput(new CachedSoundSampleProvider(wavSound));
 }
コード例 #3
0
ファイル: Events.cs プロジェクト: Belphemur/SoundSwitch
 public CustomSoundChangedEvent(CachedSound prevSound, CachedSound newSound)
 {
     PrevSound = prevSound;
     NewSound = newSound;
 }
コード例 #4
0
 public CachedSoundWaveStream(CachedSound cachedSound)
 {
     this._cachedSound = cachedSound;
 }
コード例 #5
0
 public CachedSoundSampleProvider(CachedSound cachedSound)
 {
     this._cachedSound = cachedSound;
 }
コード例 #6
0
 public CachedSoundWaveStream(CachedSound cachedSound)
 {
     this._cachedSound = cachedSound;
 }
コード例 #7
0
 public void PlaySoundWav(CachedSound wavSound)
 {
     AddMixerInput(new CachedSoundSampleProvider(wavSound));
 }
コード例 #8
0
 public CachedSoundSampleProvider(CachedSound cachedSound)
 {
     this._cachedSound = cachedSound;
 }