Hi Peter,
I see two questions here. Unfortunatly I couldn't access your link, so
I'll reply blind-folded.
On Feb 11, 2008 4:04 AM, Peter Brooks <[EMAIL PROTECTED]> wrote:
> I need to make a modification so that at 59m30s I send a signal to an
> external program and also send a signal when topOfTheHour has
> finished.
This is not related to audio stuff, since the real switch to your news
source is only 30 seconds afterwards. There are several options.
First, not using liquidsoap, but instead something like the "at"
command. You can also hack in liquidsoap, if you have a
track-insensitive switch somewhere that is always being pulled, just
add the pair ({ if 59m30s then system("your signal stuff here") ;
false }, blank()) in it. The test will be executed all the time, hence
signaling when needed. But since it always return false, the blank()
will never be player, leaving the source unchanged. Finally, you could
hack your switch to news so that it switches 30 seconds before,
signaling and then building a source that keeps playing the original
source for 30 seconds (possibly fading it for the last few seconds)
before really going on with the news. I'd really need your script for
more details here.
> The source 'news' in the sequence will be of a different length every
> few days, so hence track_sensitive must be true on the switch. The
> only current problem with this design is due to the track_sensitive,
> the sustain isn't cut off for the news.
Concerning that one, I'm not sure to understand. I'm not surprised
that you need track insensitivity, but not because of the news'
duration, but rather of the fact that music tracks do not necessarily
end at 0m0s where you want your news to start. I don't understand your
"cut-off sustain" either. It'll help a lot with another explaination
with the script included.
See ya,
--
David