Пример #1
0
 public MacroPlayer(IMacro macro, WaitHandle stoppedEvent, IElementPlayerClient client)
     : base(stoppedEvent, client)
 {
     m_Macro          = macro;
     State            = MacroPlayerState.NotStarted;
     m_ConditionEvent = new AutoResetEvent(false);
 }
Пример #2
0
 public SingleMusicPlayer(IWebRadioElement webRadio, WaitHandle stoppedEvent, IElementPlayerClient client)
     : base(stoppedEvent, client)
 {
     m_Element = webRadio;
 }
Пример #3
0
 public SingleMusicPlayer(IFileElement musicFile, WaitHandle stoppedEvent, IElementPlayerClient client)
     : base(stoppedEvent, client)
 {
     m_Element = musicFile;
 }
Пример #4
0
 public RandomMusicPlayer(IRandomBackgroundMusicList list, WaitHandle stoppedEvent, IElementPlayerClient client)
     : base(stoppedEvent, client)
 {
     m_LastElementsStack = new List <IChoiceElement>();
     m_GoBack            = false;
     m_FixedNext         = -1;
     m_RepeatCount       = 0;
     m_Container         = Ares.ModelInfo.Playlists.ExpandRandomMusicList(list, (String error) =>
     {
         ErrorHandling.ErrorOccurred(list.Id, error);
     });
 }
Пример #5
0
 public SequentialMusicPlayer(ISequentialBackgroundMusicList list, WaitHandle stoppedEvent, IElementPlayerClient client)
     : base(stoppedEvent, client)
 {
     m_Container = Ares.ModelInfo.Playlists.ExpandSequentialMusicList(list, (String error) =>
     {
         ErrorHandling.ErrorOccurred(list.Id, error);
     });
     m_RepeatCount = 0;
 }
Пример #6
0
 protected MusicPlayer(WaitHandle stoppedEvent, IElementPlayerClient client)
     : base(stoppedEvent, client)
 {
     m_RepeatCurrentMusic = PlayingModule.ThePlayer.RepeatCurrentMusic;
 }