Closed ObserverHerb closed 1 year ago
This could possibly be handled by the File::List object itself. Add a Unique()
function that returns a single random file, which leaves Random()
in place for when we don't care about duplicates.
By moving an instance of File::List
into the Command
class, I could let commands handle this themselves, which would solve the problem of repeat TikTok videos, too. Commands could have a member function in addition to Path()
that would pull a random file from the internal File::List
. (Path()
has to stay intact for screens like the configuration GUI.) Also, commands could have a "unique" or "duplicates" flag, similar to protect, that determines whether duplicates are allowed or not.
Closed by c584e59d481079e2e54129562f23dd881ad26101
The purpose of the shuffle prior to the Qt6 migration was to ensure the same song isn't played twice. Modify Music::Player class to play from a shuffled list instead of choosing a random index every song.