Skip to Content
It is currently October 15th, 2019, 8:37 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: May 2nd, 2018, 12:11 pm 
Offline
Junior User
Junior User

Joined: May 2nd, 2013, 5:08 pm
Posts: 74
I'm having problems at the last part of the code. You need to do a loop wait there but I don't know the code for that.

Code:
var CurrentSong, Liner : TSongInfo;
CurrentSong := ActivePlayer.GetSongInfo;
var segments_category : String = 'segments';

{checks if song playing is a song}
if(CurrentSong['songtype']='S') then

         Aux1.Eject;
       
        {this loads a music bed into a deck underneath the voice over}         
        Liner := CAT[segments_category].ChooseSong(smLRP, NoRules);       
        Cat['talkover'].QueueTop(smRandom, NoRules);
         
          Aux1.QueueSong(Liner);
          PAL.WaitForPlayCount(1);
          PAL.WaitForTime('00:00:03');
          Aux1.Play;

{supposed to wait for the liner playing in Aux1 to finish}
  while ((Aux1.Duration>0)) then
   begin

   end;
{then after it finishes, fade the bed playing in Active deck to next track}
  ActivePlayer.FadeToNext;

_________________
NEXTGEN FM - All night internet radio dance party! - Listen now


Top
 Profile  
Reply with quote  
PostPosted: May 2nd, 2018, 12:12 pm 
Offline
Junior User
Junior User

Joined: May 2nd, 2013, 5:08 pm
Posts: 74
sorry mods, can you move my last two posts into the PAL section

_________________
NEXTGEN FM - All night internet radio dance party! - Listen now


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:  
cron
Powered by phpBB® Forum Software © phpBB Group