Beispiel #1
0
        private static void sendTracks()
        {
            try
            {
                lock (@lock)
                {
                    int numTracks = newTracks.Count;

                    List <Track> tracks = newTracks.Take(numTracks).ToList();
                    newTracks.RemoveRange(0, numTracks);

                    Controller c = Controller.GetInstance();

                    c.AddToLibrarySilent(tracks, false);
                    c.RequestAction(QActionType.UpdateTrackCount);

                    addTracksAlarm = Clock.NULL_ALARM;
                }
            }
            catch (Exception e)
            {
                System.Diagnostics.Debug.WriteLine(e.ToString());
            }
        }