public bool BeginBrowse() { try { IsBrowseComplete = false; _autobrowseCompleteDelegate = _AlbumbrowseComplete; IntPtr callbackPtr = Marshal.GetFunctionPointerForDelegate(_autobrowseCompleteDelegate); _browsePtr = libspotify.sp_albumbrowse_create(_session.Handle, Handle, callbackPtr, IntPtr.Zero); return(true); } catch (Exception ex) { _session.Log.Warning(ModuleId, String.Format("Album.BeginBrowse() failed: {0}", ex.Message)); return(false); } }
public bool BeginBrowse() { try { IsBrowseComplete = false; _autobrowseCompleteDelegate = _AlbumbrowseComplete; IntPtr callbackPtr = Marshal.GetFunctionPointerForDelegate(_autobrowseCompleteDelegate); _browsePtr = libspotify.sp_albumbrowse_create(_session.Handle, Handle, callbackPtr, IntPtr.Zero); return true; } catch (Exception ex) { _session.Log.Warning(ModuleId, String.Format("Album.BeginBrowse() failed: {0}", ex.Message)); return false; } }