[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: xPLRioNet Random Play
- Subject: Re: xPLRioNet Random Play
- From: "Mal Lansell" <mlansell@xxxxxxxxxxxxxx>
- Date: Tue, 7 Sep 2004 09:57:24 +0100
- References: <FRNT7693C05752@frontier.co.uk>
Sounds right to me - playing just the unplayed tracks (which is easy to do
with the sorted array I mentioned) after turning random mode off means you
still hear them all once before repeating anything.
I would also suggest that turning random back on should mean it will still
only choose from the unplayed list until they have all been played once.
So in the algorithm I suggested yesterday, when choosing the next track:
If num unplayed is zero and repeat mode is NONE, just stop
If num unplayed is zero and repeat mode is ALL, reset NumUnplayed to the
number of tracks and carry on.
If Repeat = ONE: Skip Back one track
else if Random OFF: Play track[0]
else Random is ON: Play track[random number between 0 and NumUnplayed-1]
Mal
----- Original Message -----
From: "Tony Tofts" <tony@xxxxxxx>
To: <ukha_xpl@xxxxxxx>
Sent: Tuesday, September 07, 2004 5:49 AM
Subject: RE: [ukha_xpl] xPLRioNet Random Play
> > Rather than marking an item as played or not, you could just
> > move played tracks to the end of the array, so giving you all
> > the tracks that have been played in the order that they were
> > listened to. That would allow the skip back to occur (start
> > at the end and move towards the front). You then just pick
> > the next track from the first "num unplayed" tracks in
the
> > array - you will never randomly choose one that has already
> > been played. Once "num unplayed" gets to zero, you can
reset
> > it and start again. That effectively gives you a and b
> > combined - tracks do not repeat until they've all been played
once.
>
> Ok, this makes sense.
>
> What does confuse me still is what should happen when random mode is
> switched off.
>
> I'm guessing in this scenario we just play the remaining unplayed
tracks
in
> the order they are in the queue?
>
> As rleong1 says, the repeat none/one/all will handle if the list is
repeated
> or not.
>
> Thanks
> Tony
>
>
>
>
> xPL Links: http://www.xplproject.org.uk http://www.xplhal.com
http://www.xpl.myby.co.uk
> To Post a Message: ukha_xpl@xxxxxxx
> To Subscribe: ukha_xpl-subscribe@xxxxxxx
> To Unsubscribe: ukha_xpl-unsubscribe@xxxxxxx
> Yahoo! Groups Links
>
>
>
>
>
xPL Main Index |
xPL Thread Index |
xPL Home |
Archives Home
|