hustlergraham Posted June 25, 2014 Share Posted June 25, 2014 Hi all, I'm looking to play shows at specific times of the day in Sam. I've tried the event scheduler to add the file at a certain time. It will add it to the queue no problem. But it doesn't play at the time i want it to. For example, if i want to play a show at 8pm and set that up in event scheduler, i want it to play at that time, and if there's another song playing that it will just fade to the show straight away. I'm still learning about Sam and Pal Scripts, and I'm sure that this is just something simple, or maybe it requires a Pal to work? Any help will be much appreciated. Link to comment Share on other sites More sharing options...
GKIye Posted June 25, 2014 Share Posted June 25, 2014 Hello Graham, Insert this PAL - I use it also to start my TOTH and it works perfect *** It fades out the current playing song and clears the queue list {Wait for right time} PAL.Loop := true; PAL.WaitForTime(T['xx:59:40']); {Clear queue} Queue.Clear; Cat ['News (ALL)'].QueueTop(smLemmingLogic,NoRules); ActivePlayer.FadeToNext; function ActivePlayer:TPlayer; begin if DeckA.Status = psPlaying then Result := DeckA else Result := DeckB; end; Depending on the lenght of Your TOTH file change the "PAL.WaitForTime(T['xx:59:40']);" to your value Anyway ... by using xx:59:40 the TOTH beeps are aired right on time To start your radioset : - do use the Event Sheduler - set the ES to load the radioset (mp3 file) as ipTop at xx:59:55 ... xx = stands for the hour So if the show has to play between 07pm and 08pm ... than you write "18:59:55" ... - right after the TOTH your radioset gonna start *** Change if needed the location where you insert your TOTH file so change "Cat ['News (ALL)'].QueueTop(smLemmingLogic,NoRules);" to your values Visit and listen @ BW ! Link to comment Share on other sites More sharing options...
shoutcaststreaming Posted June 25, 2014 Share Posted June 25, 2014 It's easier to use the Event Scheduler (ES) with 2 exceptions. 1- You must put it to the TOP of the Queue 2- Next you fade out the current playing song Queue.AddFile('C:/songs/songtoplay.mp3', ipTop); ActivePlayer.FadeToNext; Obviously change the name of the file to your filename. SCS - Dedicated Bandwidth Servers Shoutcast / Icecast / Windows Media Transcoding - Auto DJ - Mobile Radio - FLASH Players - Auto DJ Broadcasting World's Stream Host of the Month Link to comment Share on other sites More sharing options...
hustlergraham Posted June 27, 2014 Author Share Posted June 27, 2014 Thanks for your help guys. I'll give both a try and see how they work! Edit: Both work great, thanks a lot for the help Link to comment Share on other sites More sharing options...
SatoshiAaron Posted June 29, 2014 Share Posted June 29, 2014 I hope to start using SAM and get some experience with it. Link to comment Share on other sites More sharing options...
hustlergraham Posted June 29, 2014 Author Share Posted June 29, 2014 You should. There's a few people here who despise Sam. To be honest it isn't as bad as they make it out to be. It does have it's pros and cons but so does every software. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.