Soft fixed time

Hi guys.

I read something about this function but I don’t understand how I could configure it.

I use musicgen to schedule music, and I find a way to schedule “time marker” with the command “#mAirlist DUMMY 0 TOP OF THE HOUR 00:00” …
But how to tell mAirlist that this element has a “soft fixed time” to 00:00.
I will probably have 24 command lines, which each one finishes with “…01:00”, “…02:00”…

Do I have to use script ? If yes, how should I identify “dummy” lines ?

It’s quite difficult…but seems possible ^^

Charlie or Tony will probably be along in a minute to answer that question. :wink: They’re the ‘gurus’ of music logs and how to interface them to mAirList.

BFN
CAD

I think using script would be the only solution.

I found mairlist type TPlaylistItemCategory which gives us picFile, picStream… picDummy constant variables.

But, what is the method to get it? There is no IPlaylistItem.GetCategory…

I think I won’t have any response. I will make a few new tries.

I will tell you what I will find ^^

Sorry, I have been busy (slowly getting back to work).

The safest way to determine the class of a playlist item is to check whether the objects implements one of the IFilePlaylistItem, IDummyPlaylistItem etc. interfaces (see the CHM file for a list of available interfaces). In Delphi you would use the “Supports” function, but I don’t think it’s available in Pascal Script. Alternatively, one can use the QueryInterface method, but that’s a little overkill if you’re not too much into COM programming :wink:

The easiest solution would be using the GetXMLNodeName function. It returns the same string as found as the “Class” of the item in the XML files (playlists etc.). (In v2.2, the XML output was a bit different, instead of a “Class” attribute, the string was really used as the XML node name, thus the function name. I think I should rename the function to “GetClassname” or so in v3.0.)