Beispiel #1
0
 public IArtistBrowse Browse(sp_artistbrowse_type type = sp_artistbrowse_type.FULL)
 {
     lock (libspotify.Mutex)
     {
         IntPtr artistBrowsePtr = libspotify.sp_artistbrowse_create(session.sessionPtr, artistPtr, type,
             Marshal.GetFunctionPointerForDelegate(SpotifyLib.ArtistBrowse.artistbrowse_complete), IntPtr.Zero);
         return artistBrowsePtr != IntPtr.Zero ? SpotifyLib.ArtistBrowse.Get(session, artistBrowsePtr) : null;
     }
 }
Beispiel #2
0
 public IArtistBrowse Browse(sp_artistbrowse_type type = sp_artistbrowse_type.FULL)
 {
     lock (libspotify.Mutex)
     {
         IntPtr artistBrowsePtr = libspotify.sp_artistbrowse_create(session.sessionPtr, artistPtr, type,
                                                                    Marshal.GetFunctionPointerForDelegate(SpotifyLib.ArtistBrowse.artistbrowse_complete), IntPtr.Zero);
         return(artistBrowsePtr != IntPtr.Zero ? SpotifyLib.ArtistBrowse.Get(session, artistBrowsePtr) : null);
     }
 }
Beispiel #3
0
 public IArtistBrowse Browse(sp_artistbrowse_type type = sp_artistbrowse_type.FULL)
 {
     return IsAlive() ? artist.Browse(type) : null;
 }
Beispiel #4
0
 public static extern IntPtr sp_artistbrowse_create(IntPtr sessionPtr, IntPtr artistPtr, sp_artistbrowse_type type, artistbrowse_complete_cb callback, IntPtr userDataPtr);
 public static extern IntPtr sp_artistbrowse_create(IntPtr sessionPtr, IntPtr artistPtr, sp_artistbrowse_type type, artistbrowse_complete_cb callback, IntPtr userDataPtr);
Beispiel #6
0
 internal static extern IntPtr sp_artistbrowse_create(IntPtr sessionPtr, IntPtr artistPtr, sp_artistbrowse_type type, IntPtr callbackPtr, IntPtr userDataPtr);
Beispiel #7
0
 public IArtistBrowse Browse(sp_artistbrowse_type type = sp_artistbrowse_type.FULL)
 {
     return(IsAlive() ? artist.Browse(type) : null);
 }