perf: reduce queue and autoplay memory footprint
Some checks failed
Build for Windows / build-windows (push) Has been cancelled

This commit is contained in:
joren
2026-03-30 23:24:30 +02:00
parent cfd91f96b5
commit 07d6c8a88d
3 changed files with 36 additions and 28 deletions

View File

@@ -55,6 +55,13 @@ private slots:
void onAlbumArtReady(QNetworkReply *reply);
private:
struct RecentTrackSeed {
qint64 trackId = 0;
qint64 artistId = 0;
qint64 genreId = 0;
qint64 labelId = 0;
};
QobuzBackend *m_backend = nullptr;
PlayQueue *m_queue = nullptr;
@@ -76,7 +83,7 @@ private:
QNetworkAccessManager *m_nam = nullptr;
QString m_currentArtUrl;
QJsonObject m_currentTrack;
QVector<QJsonObject> m_recentTracks;
QVector<RecentTrackSeed> m_recentTracks;
bool m_playing = false;
bool m_seeking = false;
bool m_fetchingAutoplay = false;