Hi René!
Thanks for your support. We're always very proud and honored to see awesome
use of the software like you guys do!
Your problem has been raised before. I believe you might be able to do it
by tackling the issue from the other end: could you try to trigger the
source.skip when switching away from the file-based source? Something like:
def transition(old,new) =
source.skip(old)
sequence([old,new])
end
That way, the old source would consume all of its remaining buffer before
switching away and also have time to prepare a new track for the next time
you switch back to it..
Hope this help,
Romain
2017-02-08 15:47 GMT-06:00 René Jaun <[email protected]>:
> Hello Savonet community!
>
> Let me start by thanking all of you, the developers, the supporters, the
> donors of liquidsoap. this is an awesome product. And thank you so much
> for doing such great work!
>
> I'm involved in a non-profit station called Radio Blind Power.
>
> Currently, LiquidSoap already helps us getting our live shows on air and
> to our listeners (we focus on providing audio descriptions for the blind
> of Swiss Football League games).
>
> And we plan on using it in the future for playlist and schedule management.
>
>
> Well, at the moment, I'm working on a problem which occurs when using
> the source,skip function.
>
> My idea is simple: As soon as our live feed ends, our standard music
> playlist kicks in, starting with a new track.
>
> this basically works, except that before starting the new track, a few
> seconds of the previous song (the one that was interrupted when the live
> feed kicked in) can be heard.
>
> I think it has to do with the smart_crossfade function; at least, an
> error message appearing in the Log File seems to suggest that.
>
>
> the standard music source we use is defined as:
>
>
> musicstream = mksafe( smart_crossfade( eat_blank( at_beginning=false,
> playlist("/our/music"))))
>
>
> And the transition function I use is:
>
>
> def BackHome(old,new) =
>
> source.skip(new)
>
> sequence([old,new])
>
> end
>
>
> And here is the WARNING appearing in the log file whenever my problem
> occurs:
>
>
> "[smart_cross_5114_before:3] Warning: #get called when not #is_ready!
> This is normal if an operator using this source has been unused while
> the source has gone unavailable. If unsure about this warning, you are
> very welcome to report it and ask for clarifications.."
>
>
> So I was wondering if there is some kind of (other) "flushing" I should
> perform on our Music Playlist, to clear out those remaining few seconds
> of the previously played track.
>
>
> Could you point me to a solution for that?
>
>
> Best Regards,
>
> René
>
>
>
>
>
> ------------------------------------------------------------
> ------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, SlashDot.org! http://sdm.link/slashdot
> _______________________________________________
> Savonet-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/savonet-users
>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users