示例#1
0
        public Playlist(params Music[] m)
        {
            music = new List <Music>();

            foreach (Music item in m)
            {
                add(item);
            }

            history = new List <int>();

            rand         = new Random();
            currentIndex = 0;
            playback     = new PlaybackNormal();
        }
示例#2
0
        public Playlist(List <Music> m, string name = "")
        {
            music = m;
            //still have to tag music
            foreach (Music item in music)
            {
                item.PlaylistID = nextId;
                nextId++;
            }

            history      = new List <int>();
            rand         = new Random();
            currentIndex = 0;
            playback     = new PlaybackNormal();
        }
示例#3
0
 public void setPlayback(Playback play)
 {
     playback = play;
 }