Skip to Content
It is currently July 17th, 2019, 9:41 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: January 12th, 2019, 9:17 am 
Offline
New User
New User

Joined: January 12th, 2019, 9:14 am
Posts: 1
Hi.

Found this somewhere and loaded it but it does not play the track at all
Code:
PAL.Loop := True;
Pal.WaitForTime(T['XX:00:00']);
CAT['Jingles'].QueueTop(smRandom, EnforceRules);


thank you


Last edited by Mastacheata on January 14th, 2019, 3:24 am, edited 1 time in total.
Please use [CODE] tags next time


Top
 Profile  
Reply with quote  
PostPosted: January 14th, 2019, 3:28 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 7860
Location: Aachen (Germany)
That's because this script doesn't have a command to start playing anything.
It only adds a track from the Jingles category to the top of the Queue once an hour. (Note: That only works if you created a category named Jingles. The Meta category for Type J tracks is "Jingles (All)")
In order to start playing the track immediately, you need to add ActivePlayer.Next or ActivePlayer.FadeToNext (Replace ActivePlayer with IdlePlayer, QueuedPlayer, DeckA or DeckB depending on where you want to play the jingle)

_________________
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 8 guests


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