Ejemplo n.º 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;
     }
 }
Ejemplo n.º 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);
     }
 }
Ejemplo n.º 3
0
 public IArtistBrowse Browse(sp_artistbrowse_type type = sp_artistbrowse_type.FULL)
 {
     return IsAlive() ? artist.Browse(type) : null;
 }
Ejemplo n.º 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);
Ejemplo n.º 6
0
 internal static extern IntPtr sp_artistbrowse_create(IntPtr sessionPtr, IntPtr artistPtr, sp_artistbrowse_type type, IntPtr callbackPtr, IntPtr userDataPtr);
Ejemplo n.º 7
0
 public IArtistBrowse Browse(sp_artistbrowse_type type = sp_artistbrowse_type.FULL)
 {
     return(IsAlive() ? artist.Browse(type) : null);
 }