Hi,
You need to write your script so that the special source becomes available
only when you want it to be added so something like this:
# Base jingle
jingleJournal = single(id="journal15", "/usr/local/etc/liquidsoap/
jingleJournal.mp3")
# Scheduled jingle
swJingle=switch(track_sensitive=false, [
({ 23h00m14s-23h00m20s }, jingleJournal),
({ 00h00m14s-00h00m20s }, jingleJournal),
({ 01h00m14s-01h00m20s }, jingleJournal),
({ 02h00m14s-02h00m20s }, jingleJournal),
({ 03h00m14s-03h00m20s }, jingleJournal),
({ 04h00m14s-04h00m20s }, jingleJournal),
({ 05h00m14s-05h00m20s }, jingleJournal),
({ 06h00m14s-06h00m20s }, jingleJournal),
({ 07h00m14s-07h00m20s }, jingleJournal),
({ 08h00m14s-08h00m20s }, jingleJournal),
({ 09h00m14s-09h00m20s }, jingleJournal),
({ 10h00m14s-10h00m20s }, jingleJournal),
({ 11h00m14s-11h00m20s }, jingleJournal),
({ 12h00m14s-12h00m20s }, jingleJournal),
({ 13h00m14s-13h00m20s }, jingleJournal),
({ 14h00m14s-14h00m20s }, jingleJournal),
({ 15h00m14s-15h00m20s }, jingleJournal),
({ 16h00m14s-16h00m20s }, jingleJournal),
({ 17h00m14s-17h00m20s }, jingleJournal),
({ 18h00m14s-18h00m20s }, jingleJournal),
({ 19h00m14s-19h00m20s }, jingleJournal),
({ 20h00m14s-20h00m20s }, jingleJournal),
({ 21h00m14s-21h00m20s }, jingleJournal),
({ 22h00m14s-22h00m20s }, jingleJournal)
])
# The main source
source = input.http(...)
# Smart add
s = smooth_add(normal=source, special=swJingle)
This should work better..
Romain
2015-06-25 8:34 GMT-05:00 jean duffas <[email protected]>:
> I understood :
> smooth-add works beetween streams but probanly not an mp3 file and a
> stream.
>
> jean
>
>
> > Le 24 juin 2015 à 22:30, jean duffas <[email protected]> a écrit :
> >
> > hello,
> >
> > I did try to use a smooth_add but didn’t managed to have a mix…
> > I had only the jingleJornal but no source under it anymore…
> > smooth_add don’t work but add works fine…
> > any idea?
> > thank you :-)
> >
> > Jean
> >
> >
> >
> > here is the code :
> >
> > # the sources :
> > jingleJournal = single(id="journal15",
> "/usr/local/etc/liquidsoap/jingleJournal.mp3")
> > source_N = input.http(...)
> >
> >
> > # the jingle normaly on the source ...
> > swJingle=switch(track_sensitive=false, [
> > ({ 23h00m14s-23h00m20s }, jingleJournal),
> > ({ 00h00m14s-00h00m20s }, jingleJournal),
> > ({ 01h00m14s-01h00m20s }, jingleJournal),
> > ({ 02h00m14s-02h00m20s }, jingleJournal),
> > ({ 03h00m14s-03h00m20s }, jingleJournal),
> > ({ 04h00m14s-04h00m20s }, jingleJournal),
> > ({ 05h00m14s-05h00m20s }, jingleJournal),
> > ({ 06h00m14s-06h00m20s }, jingleJournal),
> > ({ 07h00m14s-07h00m20s }, jingleJournal),
> > ({ 08h00m14s-08h00m20s }, jingleJournal),
> > ({ 09h00m14s-09h00m20s }, jingleJournal),
> > ({ 10h00m14s-10h00m20s }, jingleJournal),
> > ({ 11h00m14s-11h00m20s }, jingleJournal),
> > ({ 12h00m14s-12h00m20s }, jingleJournal),
> > ({ 13h00m14s-13h00m20s }, jingleJournal),
> > ({ 14h00m14s-14h00m20s }, jingleJournal),
> > ({ 15h00m14s-15h00m20s }, jingleJournal),
> > ({ 16h00m14s-16h00m20s }, jingleJournal),
> > ({ 17h00m14s-17h00m20s }, jingleJournal),
> > ({ 18h00m14s-18h00m20s }, jingleJournal),
> > ({ 19h00m14s-19h00m20s }, jingleJournal),
> > ({ 20h00m14s-20h00m20s }, jingleJournal),
> > ({ 21h00m14s-21h00m20s }, jingleJournal),
> > ({ 22h00m14s-22h00m20s }, jingleJournal),
> > ({ true }, source)
> > ])
> > s = smooth_add(normal=source, special=jingleJournal)
> >
> >
> >
> ------------------------------------------------------------------------------
> > Monitor 25 network devices or servers for free with OpManager!
> > OpManager is web-based network management software that monitors
> > network devices and physical & virtual servers, alerts via email & sms
> > for fault. Monitor 25 devices for free with no restriction. Download now
> > http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
> > _______________________________________________
> > Savonet-users mailing list
> > [email protected]
> > https://lists.sourceforge.net/lists/listinfo/savonet-users
>
>
>
> ------------------------------------------------------------------------------
> Monitor 25 network devices or servers for free with OpManager!
> OpManager is web-based network management software that monitors
> network devices and physical & virtual servers, alerts via email & sms
> for fault. Monitor 25 devices for free with no restriction. Download now
> http://ad.doubleclick.net/ddm/clk/292181274;119417398;o
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users