Note that this Wiki is a work in progress, items may not be updated or may disappear entirely as the pages are updated.
AutoStart SAM via a PAL
From SpacialAudio
QUESTION:
Can I start the play button when I want w/o using Auto-Recovery?
ANSWER:
You certainly can. Using a bit of PAL and a couple of well placed ID's or announcements you can create an auto-start on your station so you do not have to be there to start SAM.
Create a PAL from this bit of Code:
var P : TPlayer;
var Song : TSongInfo;
{## Wait for 3 seconds}
PAL.WaitForTime('+00:00:03');
{## Detect the empty player and queue a station ID in it}
P := IdlePlayer;
if P <> nil then
begin
Song := CAT['Station IDs (All)'].ChooseSong(smRandom,NoRules);
if Song <> nil then P.QueueSong(Song);
{## Detect the active player and start the fade-out}
P := QueuedPlayer;
if P <> nil then P.Play;
end;
Use the event scheduler to fire it off and make sure SAM is in the AutoDJ or Queue (recommended) mode. The decks should automatically start playing 3 seconds after this event is triggered. (I waited 3 seconds so the encoders had time to start and the script didn't tax SAM too much at one time.) Make sure you have some advertisements or other items in the Station IDs (All) category. For this situation a custom ID to announce the beginning of the show is recommended. I hope this helps.
P.S. At least one deck must be empty for this script to work. Simply hit the Eject button before heading to work for the evening.
