예제 #1
0
 public virtual void DescriptionChanged(Playlist pl, string @desc, object userdata)
 {
 }
예제 #2
0
 public virtual void ImageChanged(Playlist pl, ImageId @image, object userdata)
 {
 }
예제 #3
0
 public virtual void TracksMoved(Playlist pl, int[] @tracks, int @new_position, object userdata)
 {
 }
예제 #4
0
 public virtual void TracksRemoved(Playlist pl, int[] @tracks, object userdata)
 {
 }
예제 #5
0
 public virtual void SubscribersChanged(Playlist pl, object userdata)
 {
 }
예제 #6
0
        void PlaylistBrowseTry()
        {
            StartingListeningForPlaylistChanges();
            if (!iPlaylistBrowse.IsLoaded())
            {
                Console.WriteLine("\tPlaylist not loaded");
                return;
            }

            int tracks = iPlaylistBrowse.NumTracks();
            for (int i = 0; i != tracks; ++i)
            {
                Track t = iPlaylistBrowse.Track(i);
                if (!t.IsLoaded())
                {
                    return;
                }
            }

            Console.WriteLine("\tPlaylist and metadata loaded");

            for (int i = 0; i != tracks; ++i)
            {
                Track t = iPlaylistBrowse.Track(i);
                Console.Write(" {0,5}: ", i + 1);
                PrintTrack(t);
            }

            iPlaylistBrowse.RemoveCallbacks(iPlaylistListener, null);
            StopListeningForPlaylistChanges();
            iPlaylistBrowse.Release();
            iPlaylistBrowse = null;
            iConsoleReader.RequestInput("> ");
        }
예제 #7
0
 public void BrowsePlaylist(Playlist aPlaylist)
 {
     iPlaylistBrowse = aPlaylist;
     aPlaylist.AddCallbacks(iPlaylistListener, null);
     PlaylistBrowseTry();
 }
예제 #8
0
 public virtual void PlaylistStateChanged(Playlist pl, object userdata)
 {
 }
예제 #9
0
 public override void TracksMoved(Playlist pl, int[] tracks, int new_position, object userdata)
 {
     Console.WriteLine("\t{0} tracks moved", tracks.Length);
 }
예제 #10
0
 public override void TracksRemoved(Playlist pl, int[] tracks, object userdata)
 {
     Console.WriteLine("\t{0} tracks removed", tracks.Length);
 }
예제 #11
0
 public override void TracksAdded(Playlist pl, Track[] tracks, int position, object userdata)
 {
     Console.WriteLine("\t{0} tracks added", tracks.Length);
 }
예제 #12
0
 public override void PlaylistStateChanged(Playlist pl, object userdata)
 {
     iBrowser.PlaylistBrowseTry();
 }
예제 #13
0
 public override void PlaylistRenamed(Playlist pl, object userdata)
 {
     Console.WriteLine("List name: {0}", pl.Name());
 }
예제 #14
0
 public virtual void PlaylistMetadataUpdated(Playlist pl, object userdata)
 {
 }
예제 #15
0
 public virtual void TrackMessageChanged(Playlist pl, int @position, string @message, object userdata)
 {
 }
예제 #16
0
 public virtual void PlaylistRenamed(Playlist pl, object userdata)
 {
 }
예제 #17
0
 public virtual void TracksAdded(Playlist pl, Track[] @tracks, int @position, object userdata)
 {
 }
예제 #18
0
 public virtual void PlaylistUpdateInProgress(Playlist pl, bool @done, object userdata)
 {
 }
예제 #19
0
 public virtual void TrackSeenChanged(Playlist pl, int @position, bool @seen, object userdata)
 {
 }
예제 #20
0
 public virtual void TrackCreatedChanged(Playlist pl, int @position, User @user, int @when, object userdata)
 {
 }
예제 #21
0
 public virtual void PlaylistRemoved(PlaylistContainer pc, Playlist playlist, int @position, object userdata)
 {
 }