We Loudcast is a forum sponsored by Loudcaster and managed by community members. It's a place to exchange ideas about broadcasting online. Loudcaster Support does not participate in this forum. Issues related to the Loudcaster service must be emailed to support [-at-] loudcaster.com
Anyone use SAM?
  • koshermetalkoshermetal August 2011
    We're using SAM 4.

    Does anyone know the script to auto start the encoder and start playing what's in the queue and then stop when queue is empty?
  • reaperreaper August 2011
    I use Sam and just scratching the surface as far as scripts go. Try the Spacial Audio forums and if that doesn't work I can ask a fellow broadcaster who is a mod in the forums to help you out. No guarantees that he can even help but it could be worth a try.
  • triptrip August 2011
    Here ya go.

    {This script will rotate the songs in the queue,
    i.e. the songs in the queue will loop over and over again
    }

    var Song : TSongInfo;
    var Q : TDataSet;

    PAL.Loop := True;
    PAL.WaitForPlayCount(5);

    PAL.LockExecution;
    Q := Query('SELECT filename FROM historylist ORDER BY date_played DESC',[],True);
    if not Q.IsEmpty then
    Queue.AddFile(Q['File Name'],ipBottom);
    Q.Free;
    PAL.UnlockExecution;
  • triptrip August 2011
    bump...
  • triptrip August 2011
    Use the event scheduler to start and stop the encoders
  • triptrip August 2011
    bump....
  • triptrip August 2011

    Here's the stop pal

    if Now > T['21:00:00'] then
    PAL.Loop := False;
  • radiowayneradiowayne August 2011
    radiowayne notes that if you are wanting to use a PAL script to stop and start the encoders then you are taking a very easy task and making it difficult. radiowayne does this for his Sunday night live shows which are simulcast on another internet radio station very simply using the event scheduler.

    But, then again, he could be wrong.

    Wayne G. aka radiowayne
  • triptrip August 2011
    Yeah wayne, the event scheduler is great for that. I remember when it didn't use to do it. The scheduler can be used for so many things now. But still need the pal script for the queue.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In with OpenID Sign In with Google Sign In with Twitter

Sign In Apply for Membership

In this Discussion

Tagged