theoriginalrage Posted July 12, 2009 Share Posted July 12, 2009 function ActivePlayer:TPlayer; forward; In the statement above I cannot figure out what the "forward;" does and I can't find any info online about what it does. All of the regular functions(fadetonext,fadetoplay,fadetopause, etc) make sense to me but that one doesn't. Just in case it's necessary I will include the entire code that my partner came up with. Maybe that's why it wasn't working and he abandoned using it. It was supposed to clear the queue at 10:59:35(pm) and load an ElectroMix Intro and then start the Electromix. My first thought is, the time is supposed to be a 24 clock so it should be ['22:59:35'], right? and maybe we should just get rid of that top line of code because I don't think it does anything. Let me know! Thanks for the help. function ActivePlayer:TPlayer; forward; {Wait for right time} PAL.Loop := true; PAL.WaitForTime(T['10:59:35']); {Clear Queue} Queue.Clear; ActivePlayer.FadeToNext; Cat ['Electro Mix Intros'].QueueTop(smRandom,NoRules); ------------------------------------------------------------- UPDATE (A few minutes later) Perhaps it should look like this: {Wait for right time} PAL.Loop := true; PAL.WaitForTime(T['22:59:50']); {Clear Queue} Queue.Clear; Cat ['Electro Mix Intros'].QueueTop(smRandom,NoRules); ActivePlayer.FadeToNext; Link to comment Share on other sites More sharing options...
countrywesterndj Posted July 13, 2009 Share Posted July 13, 2009 The statment FOWARD tells the script that a FUNCTION will be used, but is defined later on in the script. This is 10:59:35 AM [b]PAL.WaitForTime(T['10:59:35']);[/b] This is 10:59:50 PM [b]PAL.WaitForTime(T['22:59:50']);[/b] PAL uses a 24 hour clock. Spacial SVS Support Team http://support.spacialaudio.com/forums/ Get help with PAL Scripts at http://www.palscripts.com Link to comment Share on other sites More sharing options...
GKIye Posted July 13, 2009 Share Posted July 13, 2009 Welcome to BW ! As new member I wanna redirect you to my sticky topics about SAM Broadcaster and PAL scripts I'm pretty sure you gonna find the PAL about ActivePlayer at those pages please see this page at BW : http://forums.broadcastingworld.net/showthread.php?t=7199 at the end of part 1 you'll find a link to part 2 Note : all PAL scripts who are mentioned in both topics are 100% operational (so just copy and paste and change "time" and "directory" where needed) Hope this was usefull Visit and listen @ BW ! Link to comment Share on other sites More sharing options...
theoriginalrage Posted July 13, 2009 Author Share Posted July 13, 2009 So it should be like this then: function ActivePlayer:TPlayer; forward; {Wait for right time} PAL.Loop := true; PAL.WaitForTime(T['22:59:50']); {Clear Queue} Queue.Clear; Cat ['Electro Mix Intros'].QueueTop(smRandom,NoRules); ActivePlayer.FadeToNext; Link to comment Share on other sites More sharing options...
countrywesterndj Posted July 13, 2009 Share Posted July 13, 2009 I have no clue on what you are trying to do. Very hard to make suggestions when you only give me a part of the code to look at. Take out the line: function ActivePlayer:TPlayer; forward; Why do you need that? Perhaps, if you had posted the entire script, we would have known why that line was in there. Spacial SVS Support Team http://support.spacialaudio.com/forums/ Get help with PAL Scripts at http://www.palscripts.com Link to comment Share on other sites More sharing options...
GKIye Posted July 13, 2009 Share Posted July 13, 2009 May I ask you to read my earlier reply to your question ? it looks that you ignore my reply ... isn't ? Link to that page at BW who is mentioned into my reply and you gonna find all PAL scripts who are usefull and who can be used by your services. The only thing you have to do is "copy and paste" and change the "directory" and "Time" and you are up and running ! I have no clue on what you are trying to do. Very hard to make suggestions when you only give me a part of the code to look at. Take out the line: function ActivePlayer:TPlayer; forward; Why do you need that? Perhaps, if you had posted the entire script, we would have known why that line was in there. Visit and listen @ BW ! Link to comment Share on other sites More sharing options...
theoriginalrage Posted July 15, 2009 Author Share Posted July 15, 2009 I have no clue on what you are trying to do. Very hard to make suggestions when you only give me a part of the code to look at. Take out the line: function ActivePlayer:TPlayer; forward; Why do you need that? Perhaps, if you had posted the entire script, we would have known why that line was in there. Perhaps you should go back to the top and read my original post Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.