Alan Fahrner
2017-03-19 00:35:38 UTC
Hi folks,
Hoping for pointersâŠIâve search for an answer to this one too and cannot figure out what I am doing wrong.
The problem is that if I set "track_sensitive=falseâ in fallback, it always uses the fallback file (and never the primary source). Before I share my script, do I have do do a âplaylist.safeâ or a âmksafeâ with the main source to get around this? This in the quickstart docs (http://savonet.sourceforge.net/doc-svn/quick_start.html <http://savonet.sourceforge.net/doc-svn/quick_start.html>) makes me think thatâs not supposed to be the case:
When an output complains about its source, you have to turn it into an infallible one. Depending on the situation, many solutions are available. The function mksafe takes a source and returns an infallible source, streaming silence when the input stream becomes unavailable. In a radio-like stream, silence is not the prefered solution, and you will probably prefer to fallback on an infallible âsecurityâ source:
fallback([your_fallible_source_here, single("failure.ogg")])
Finally, if you do not care about failures, you can pass the parameter fallible=true to most outputs.
Right now I am setting I am leaving off the âtrack_sensitive=falseâ and having fallible=true in the output to have things work. All of my files are local (I am loading directories). This is the fallback call right now:
security = single("~/Dropbox/70sRockXYZ/Media/normal/Van Halen/Van Halen/02 Eruption.mp3")
s = fallback([s,security])
Can you help me understand what I am doing wrong. From the docs I thought I could just do the single() and then should be able to do this:
s = fallback(track_sensitive=false,[s,security])
But then all I hear is Van Halenâs Eruption over and overâŠand itâs a great songâŠbut⊠:-)
Iâm glad to provide more of the script if it helps.
My best,
Alan
Hoping for pointersâŠIâve search for an answer to this one too and cannot figure out what I am doing wrong.
The problem is that if I set "track_sensitive=falseâ in fallback, it always uses the fallback file (and never the primary source). Before I share my script, do I have do do a âplaylist.safeâ or a âmksafeâ with the main source to get around this? This in the quickstart docs (http://savonet.sourceforge.net/doc-svn/quick_start.html <http://savonet.sourceforge.net/doc-svn/quick_start.html>) makes me think thatâs not supposed to be the case:
When an output complains about its source, you have to turn it into an infallible one. Depending on the situation, many solutions are available. The function mksafe takes a source and returns an infallible source, streaming silence when the input stream becomes unavailable. In a radio-like stream, silence is not the prefered solution, and you will probably prefer to fallback on an infallible âsecurityâ source:
fallback([your_fallible_source_here, single("failure.ogg")])
Finally, if you do not care about failures, you can pass the parameter fallible=true to most outputs.
Right now I am setting I am leaving off the âtrack_sensitive=falseâ and having fallible=true in the output to have things work. All of my files are local (I am loading directories). This is the fallback call right now:
security = single("~/Dropbox/70sRockXYZ/Media/normal/Van Halen/Van Halen/02 Eruption.mp3")
s = fallback([s,security])
Can you help me understand what I am doing wrong. From the docs I thought I could just do the single() and then should be able to do this:
s = fallback(track_sensitive=false,[s,security])
But then all I hear is Van Halenâs Eruption over and overâŠand itâs a great songâŠbut⊠:-)
Iâm glad to provide more of the script if it helps.
My best,
Alan