Well, my memory is bad, (input.external, not playlist.external), but the idea was right....
In my config file, I have this: fade_pipe=input.external(id="fade_pipe", "dd if=/tmp/timers.pipe bs=16k 2>/dev/null") The bash script has this: sox $INTRO -t raw -r 44100 -c 2 /tmp/timers.pipe If you want to feed more than one file in from the same script, replace the pipe name with "-" (stdout), then redirect the output of the script to the named pipe instead. Otherwise, when one file finishes playing, there is a brief instant where no data is available on the pipe, and liquidsoap switches away from the source. This way, the shell buffering will keep data available in the pipe even between calls to sox. Chuck Doolittle, N1SPX CIO, Heritage Information Radio http://am1700.org/ On Fri, Sep 16, 2016 at 3:06 PM Chuck Doolittle <n1s...@gmail.com> wrote: > What I do (on Linux) is use a playlist.external() and a named pipe. > > I have a (bash) script triggered by cron that gets the right file and runs > it through sox to match the format specified in the playlist.external() > call and pipe it into the named pipe. > > When liquidsoap sees that data is ready in the pipe, the source becomes > available. When the pipe is empty, the source becomes unavailable. > > Chuck Doolittle, N1SPX > CIO, Heritage Information Radio > http://am1700.org/ > > On Fri, Sep 16, 2016 at 8:58 AM Walter York <waltery...@hotmail.com> > wrote: > >> Any assistance would be greatly appreciated... >> ------------------------------ >> From: waltery...@hotmail.com >> To: savonet-users@lists.sourceforge.net >> Date: Fri, 2 Sep 2016 16:37:44 -0400 >> Subject: [Savonet-users] Custom play based on day of each month >> >> >> I would like to play the Proverb and Psalm of the day rotating back and >> forth. >> >> The mp3 files are named accordingly... >> >> All of these files are in the same folder including the rest of the Bible. >> >> 0479_19_Psalm_001.mp3 >> 0480_19_Psalm_002.mp3 >> 0481_19_Psalm_003.mp3 >> 0482_19_Psalm_004.mp3 >> etc... >> >> 0629_20_Proverbs_001.mp3 >> 0630_20_Proverbs_002.mp3 >> 0631_20_Proverbs_003.mp3 >> etc... >> >> On every first day of the month, I'd like to play ...Psalm_001.mp3 and >> ...Proverbs_001.mp3 >> Every second day of the month, I'd like to play ...Psalm_002.mp3 and >> ...Proverbs_002.mp3 >> >> Would someone please provide the logic to create the config file for the >> above request so I don't have to create separate playlists for each day? >> Thank you so much for your time in advance... >> >> >> ------------------------------------------------------------------------------ >> _______________________________________________ Savonet-users mailing >> list Savonet-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/savonet-users >> >> ------------------------------------------------------------------------------ >> _______________________________________________ >> Savonet-users mailing list >> Savonet-users@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/savonet-users >> >
------------------------------------------------------------------------------
_______________________________________________ Savonet-users mailing list Savonet-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/savonet-users