Fix gapless playback when using url handler

This commit is contained in:
Jonas Kvinge
2019-06-15 19:32:26 +02:00
parent e59c3c6f70
commit a6766f3c99
3 changed files with 91 additions and 71 deletions

View File

@@ -81,13 +81,6 @@ class UrlHandler : public QObject {
// Called by the Player when a song starts loading - gives the handler a chance to do something clever to get a playable track.
virtual LoadResult StartLoading(const QUrl &url) { return LoadResult(url); }
// Called by the player when a song finishes - gives the handler a chance to get another track to play.
virtual LoadResult LoadNext(const QUrl &url) { return LoadResult(url); }
// Functions to be warned when something happen to a track handled by UrlHandler.
virtual void TrackAboutToEnd() {};
virtual void TrackSkipped() {};
signals:
void AsyncLoadComplete(const UrlHandler::LoadResult &result);