Lowered the number of tracks loaded at once in the playqueue

This commit is contained in:
emeric
2021-05-20 18:05:56 +02:00
parent 42af0d8e3e
commit fd9bbb09d7
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -392,7 +392,7 @@ PlayQueue::addSome()
auto tracklist = getTrackList();
auto tracklistEntries = tracklist->getEntries(_entriesContainer->getCount(), 50);
auto tracklistEntries = tracklist->getEntries(_entriesContainer->getCount(), _batchSize);
for (const Database::TrackListEntry::pointer& tracklistEntry : tracklistEntries)
addEntry(tracklistEntry);
+1
View File
@@ -85,6 +85,7 @@ class PlayQueue : public Wt::WTemplate
std::optional<float> getReplayGain(std::size_t pos, const Wt::Dbo::ptr<Database::Track>& track) const;
static inline constexpr std::size_t _nbMaxEntries {1000};
static inline constexpr std::size_t _batchSize {6};
bool _repeatAll {};
bool _radioMode {};