コード例 #1
0
ファイル: MacroPlayer.cs プロジェクト: monstrim/Ares
 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;
 }