Skip to Content
It is currently December 6th, 2019, 5:46 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: smPlaylistOrder
PostPosted: December 2nd, 2019, 2:54 pm 
Offline
New User
New User

Joined: October 25th, 2018, 12:48 pm
Posts: 3
Cannot find any docs on this except in the readme.

What would be the syntax?


Top
 Profile  
Reply with quote  
 Post subject: Re: smPlaylistOrder
PostPosted: December 2nd, 2019, 6:46 pm 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7888
Location: Aachen (Germany)
smPlaylistOrder is an Alias for the number 8.
i.e. instead of:
Code:
PAL.WaitForTime('+08:00:00');

You can also write this:
Code:
PAL.WaitForTime('+0'+IntToStr(smPlaylistOrder)+':00:00');


Cool, isn't it? :P


OK jokes aside: smPlaylistOrder or the number 8 for that matter can be used together with stuff like CAT['xyz'].ChooseSong, CAT['xyz'].QueueBottom, CAT['xyz'].QueueTop
It tells each of these commands to pick the next song according to the custom order by which you sorted your category xyz. The song at the top will be picked first, then the one below that and so on. (Obviously it will skip songs that don't match your repeat rules if you tell it to EnforceRules)

They use a constant for that purpose because that is easier to remember than putting 8 in there.
It's similar to the InsertPosition for QueueDir for example (ipTop = 0, ipBottom = 1)

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

We're offering custom PAL / PHP code and general SAM assistance at palscripts.com

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group