Hi,
There are several ways to manually change a source. If your source is
in a fallback, you have to make it unavailable. If the source has
start/stop commands they can be used, but it's not (yet) the case for
input.alsa(). A generic solution is to wrap the source in a switch
with an interactive selector. Here is a self-contained script showing
how it works:
source = playlist("~/media/audio/jazz")
play = ref false
source = switch(track_sensitive=false,[({!play},source)])
server.register("toggle",
fun (_)-> begin
play := not(!play)
"OK"
end)
out(fallback(track_sensitive=false,[source,sine()]))
Run it with the telnet server enabled (-t) and use the telnet command
toggle to turn the playlist on/off. I'll let you adapt the script in
your case, where my playlist would be your input.alsa and my sine
would be your playlist.
Another possibility is to use the mix() operator which has multiple
inputs (you don't care) and can interactively toggle each of them
on/off.
Have fun,
--
David
------------------------------------------------------------------------------
Learn how Oracle Real Application Clusters (RAC) One Node allows customers
to consolidate database storage, standardize their database environment, and,
should the need arise, upgrade to a full multi-node Oracle RAC database
without downtime or disruption
http://p.sf.net/sfu/oracle-sfdevnl
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users