Hi guys,
For reference, there is a bug report closely related:
http://dev.sourcefabric.org/browse/LS-601
One problem with this bug report is that I don't understand the
comment I made. Our HTTP input doesn't necessarily want a fixed type,
and I don't see when this could have changed. In fact I just managed
to use the following:
liquidsoap
'output.pulseaudio(fallible=true,audio_to_stereo((input.http("URL"):source(*+1,0,0))))'
Using a type annotation, I allow the HTTP input to emit anything,
which the audio_to_stereo conversion accepts and converts. I have been
able to send mono and stereo streams alternatively to the same mount,
the listening liquidsoap has switched without any problem.
Getting back to your problem, Peter, there are many ways to do things,
and I may need more details. If for a given URL you don't know whether
it's going to be mono or stereo, then you can use the trick above.
Also, it may be useful to remember that you may put the conversion
stuff (audio_to_stereo + annotation) after the fallback, which may be
nicer than applying it 10 times in the exact same way underneath.
Hope this helps,
David
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users