Пример #1
0
        internal void Play(JJaxCue cue)
        {
            cue.OnStopped += new OnStoppedEvent(SongStopped);
            cue.Play();

            cues.Add(cue);
        }
Пример #2
0
        internal void Stop(string name)
        {
            JJaxCue cue = (from c in cues
                           where c.Name == name
                           select c).FirstOrDefault();

            if (cue != null)
            {
                cue.Stop();
            }
        }
Пример #3
0
        internal bool IsPlaying(string name)
        {
            JJaxCue cue = (from c in cues
                           where c.Name == name
                           select c).FirstOrDefault();

            if (cue == null)
            {
                return(false);
            }

            return(true);
        }
Пример #4
0
 void SongStopped(JJaxCue song)
 {
     song.Dispose();
     cues.Remove(song);
 }