internal void Play(JJaxCue cue) { cue.OnStopped += new OnStoppedEvent(SongStopped); cue.Play(); cues.Add(cue); }
internal void Stop(string name) { JJaxCue cue = (from c in cues where c.Name == name select c).FirstOrDefault(); if (cue != null) { cue.Stop(); } }
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); }
void SongStopped(JJaxCue song) { song.Dispose(); cues.Remove(song); }