On Sat, Apr 30, 2011 at 7:00 PM, Francesco P. Sileno <[email protected]> wrote: > That does not work, I get the same error!
You're right, my mistake. I won't develop here the subtlety but the slightly different types of input.http() and something like playlist() mean that the tricks used for playlists don't apply exactly for http inputs. With the code I gave you, liquidsoap still has to guess what number of channels the http input will produce. And the default guess is stereo, so you're back to the same situation. The solution is to force mono on the input (which is also what happenned with %mp3(stereo=false), with side effects to the whole script): s = input.http(...) s = audio_to_stereo((s:source(1,0,0))) This very explicit script should work fine. I'll make it possible real soon to write type annotations in other places, so it'll become possible to write directly: s : source(1,0,0) = input.http(...) And maybe audio_to_stereo((input.http(...):source(1,0,0))) without the parenthesis around the (value:type) annotation. Also I have modified our code so that in debug mode the http source prints the type that was assigned to it (telling us if it's a mono or stereo source). I'll see if we can do any better than that, for example warn the user in a concise and informative way about the somewhat arbitrary choices liquidsoap has to make. Cheers, -- David ------------------------------------------------------------------------------ WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
