예제 #1
0
        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);
            }
        }
예제 #2
0
파일: Album.cs 프로젝트: razims/Spoti
        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;
            }
        }