Hello there.

I am very bad programmer so I have learned the very few things of
LiquidSoap, thanks to you here in this list.

Now I want to make the radio connects to another stream for 2.5 hours
(from 7am to 9:30am)

I have the following config to do so:

------------------------------------

podcasts = mksafe(playlist(mode="randomize", reload_mode="rounds",
reload=1,"podcasts.txt"))

jingles =  mksafe(playlist(mode="normal", reload_mode="rounds",
reload=1, "jingles.txt"))

pl = random(weights = [3, 1],[jingles, podcasts])

alba = input.http("http://200.11.190.106:8000/alba96.mp3";)

diferido = mksafe(switch(track_sensitive=false, [({ 7h-9h30 }, alba), ({
9h30-7h }, pl)]))

live  = input.http("http://localhost:8000/envivo.ogg";)

def transicion(live,diferido)
  def immediate(live,diferido)
    diferido
  end
  def delayed(live,diferido)
    sequence([ blank(duration=5.), fade.initial(duration=2.,diferido) ])
  end

fallback(track_sensitive=false,[live,diferido],transitions=[immediate,delayed])
end

radio = transicion(live,diferido)

-----------------------------------------------------

The prpblem is there is no switch, until tracks of "podcasts" ends, and
all of them last at least 1 hour. I have set track_sensitive=false to
the switch function, but it seems not to be working.

Any clue?

-thanks-

--
  __________________________________________________________
 |   ,           ,                                          |
 |  /             \                                         |
 | ((__-^^-,-^^-__))    Octavio Rossell Tabet               |
 |  `-_---' `---_-'     [email protected]                  |
 |   `--|o` 'o|--'      http://octavio.gnu.org.ve           |
 |      \  `  /         irc.radiognu.org #gnu               |
 |      .:   :.                                             |
 |       :o_o:          Huella: FC69 551B ECB9 62B0 D992    |
 |        "-"                   BE57 B551 2497 C78B 870A    |
 |__________________________________________________________|

<<attachment: octavio.vcf>>

Attachment: signature.asc
Description: OpenPGP digital signature

------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to