make sure liquidsoap converts audio sources to stereo

This commit is contained in:
Pieter Heremans 2022-05-25 00:11:25 +02:00
parent b8e088fc11
commit 85046e5a5a

View File

@ -77,9 +77,9 @@ set("{{ key|safe }}", {{ value|safe }})
{% block sources %} {% block sources %}
{% with source=streamer.dealer %} {% with source=streamer.dealer %}
live = interactive('{{ source.id }}', live = audio_to_stereo(interactive('{{ source.id }}',
request.queue(id="{{ source.id }}_queue") request.queue(id="{{ source.id }}_queue")
) ))
{% endwith %} {% endwith %}
@ -89,12 +89,12 @@ streams = rotate(id="streams", [
{% with stream=source.stream %} {% with stream=source.stream %}
{% if stream.delay %} {% if stream.delay %}
delay({{ stream.delay }}., delay({{ stream.delay }}.,
stream("{{ source.id }}", "{{ source.path }}")), audio_to_stereo(stream("{{ source.id }}", "{{ source.path }}"))),
{% elif stream.begin and stream.end %} {% elif stream.begin and stream.end %}
at({ {{stream.begin}}-{{stream.end}} }, at({ {{stream.begin}}-{{stream.end}} },
stream("{{ source.id }}", "{{ source.path }}")), audio_to_stereo(stream("{{ source.id }}", "{{ source.path }}"))),
{% else %} {% else %}
stream("{{ source.id }}", "{{ source.path }}"), audio_to_stereo(stream("{{ source.id }}", "{{ source.path }}")),
{% endif %} {% endif %}
{% endwith %} {% endwith %}
{% endif %} {% endif %}