Hello everyone,
With the recent versions of Liquidsoap, strip_blank() now outputs an
active_source. The same scripts used to work before, but now they don't.
Here's the output when run:
At /usr/local/etc/liquidsoap/res/5shampoo_bridge.liq, line 64, char 36:
this value has type
ref([source(_)]) (inferred at
/usr/local/etc/liquidsoap/res/5shampoo_bridge.liq, line 43, char 36-41)
but it should be a subtype of (the type of the value at
/usr/local/etc/liquidsoap/res/3shampoo_core.liq, line 321, char 155)
ref([active_source(_)]) (inferred at
/usr/local/etc/liquidsoap/res/3shampoo_core.liq, line 195, char 65-97)
line 64 of /usr/local/etc/liquidsoap/res/5shampoo_bridge.liq references
the item with the * before:
_source = ref mkoutput(
_seat_number,
_ws_key,
_p_key,
_channel_id,
_is_lv_shout,
_lv_port,
_lv_mntpnt,
_ref_independent_sources,
*_ref_independent_active_sources,
shutdown_output,
_last_user,
_last_key)
line 43 of /usr/local/etc/liquidsoap/res/5shampoo_bridge.liq is:
_ref_independent_active_sources = ref []
line 321 of /usr/local/etc/liquidsoap/res/3shampoo_core.liq is this,
where char character 155 is represented by a *:
def mkoutput(_seat_number, _ws_key, _p_key, _channel_id,
_is_lv_shoutcast, _lv_port, _lv_mntpnt, _ref_independent_sources,
*_ref_independent_active_sources, _shutdown, _last_user, _last_key) =
line 195 of /usr/local/etc/liquidsoap/res/3shampoo_core.liq represents
the line with the * before:
ref_source = ref strip_blank(max_blank=10., !ref_source, threshold=-30.)
*_ref_independent_active_sources := list.append([!ref_source],
!_ref_independent_active_sources)
I don't understand why that _ref_independent_active_sources list cannot
be automatically inferred as a list of active_source
If I modify:
ref_source = ref strip_blank(max_blank=10., !ref_source, threshold=-30.)
and use another operator than strip_blank (which outputs a standard
source) then everything works as expected
_ref_independent_active_sources is not fed with regular sources
anywhere; line 195 of /usr/local/etc/liquidsoap/res/3shampoo_core.liq is
the only place in all scripts where that list is supplied with data
Thanks for your help
--
regards,
okay_awright
<okay_awright AT ddcr DOT biz>
------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users