The RandomMix plugin currently takes no steps to avoid playing the same
track more than once. However, I've started work on a change to stop
songs being played more than once using the last played timestamp
(http://bugs.slimdevices.com/show_bug.cgi?id=2551). This will get
done, but I'm still recovering from the Christmas period atm so am
spending very little time on Slim stuff.
Max
JJZolx Wrote:
> You're talking about the Random Mix plugin, correct? Given the way the
> Random Mix plugin operates - by placing N items into the playlist, then
> when on has played, selecting another, I wouldn't be surprised if it
> does a very simple random selection "with replacement". The plugin
> author would have to answer this question.
>
> I suppose a better method would be to do a random ordering of all
> tracks that meet the selection criteria, hold that list in memory, and
> feed them one-by-one into the playlist. But that's a very memory
> intensive way of doing it when you have a large database.
>
> A less memory-intensive method, a random select _without_ replacement,
> would be to keep a list of tracks that have already been selected and
> exclude them from the random query for the next track. In SQL, this is
> easily done with a NOT IN ({set of track_id}) in the WHERE clause,
> although this gets pretty expensive when that set grows large.
--
max.spicer
The wild things roared their terrible roars and gnashed their terrible
teeth
and rolled their terrible eyes and showed their terrible claws
but Max stepped into his private boat and waved good-bye
------------------------------------------------------------------------
max.spicer's Profile: http://forums.slimdevices.com/member.php?userid=23
View this thread: http://forums.slimdevices.com/showthread.php?t=19696
_______________________________________________
Discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss