Am 14.07.2011 16:40, schrieb Brandon Casci:
> This might be a little low tech, but what if you only used strip_blank
> on the sources that are meant to play sound? Then you made a silent
> mp3 of a desired length, put that into a single playlist source set up
> an appropriate fallback cascade so the silent mp3 is played during the
> transition?
lo brandon!
i managed it to work!!!
thx for your hint, which lead me to the solution. in short words: we now
use a request.queue to ensure the source will not loop, or is playing
only once. we use harbor on_connect/disconnect to flush a possible
queue, or push a "silenced.ogg" into the queue. the flushing snippet you
can find on the snippet section of the docs, which i added recently.
here for understanding (simplyfied):
my_silenced_queue = request.queue()
def confunc =
ignore(server.execute("my_silenced_queue.stop"))
end
def disfunc =
ignore(server.execute("my_silenced_queue.push
/path/silence_10_sec.ogg"))
end
live = harbor(...,on_connect=confunc,on_disconnect=disfunc,...)
radio = fallback([live,my_silenced_queue,playlist,security])
again, quick & dirty,
mcc
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users