Make selected audio devices obvious.

This commit is contained in:
Matthew Stratford 2021-05-27 00:18:35 +01:00
parent 55f58e03cd
commit da93caa390

View file

@ -2,7 +2,15 @@
{% block content_inner %} {% block content_inner %}
<h3 class="h5">Audio Outputs</h3> <h3 class="h5">Audio Outputs</h3>
<p> <p>
<strong>Please note: Currently BAPSicle does not support choosing which Host API is used. Only supported options can be selected.</strong> <strong>Please note:</strong> Currently BAPSicle does not support choosing which Host API is used. Only supported options can be selected.
<br>
<strong>On MacOS:</strong> The available inputs will not update automatically, the server must be restarted.
</p>
<h4 class="h5">Currently Selected</h4>
<p>
{% for channel in data.channels %}
<strong>Channel {{channel.channel}}:</strong> {% if channel.output %}{{channel.output}}{% else %}Default Audio Device{% endif %}<br>
{% endfor %}
</p> </p>
{% for host_api in data.outputs %} {% for host_api in data.outputs %}
{{host_api.name}} {{host_api.name}}
@ -12,7 +20,11 @@
{% if host_api.usable %} {% if host_api.usable %}
Set for: Set for:
{% for channel in data.channels %} {% for channel in data.channels %}
{% if channel.output == output.name %}
<strong>Channel {{channel.channel}}</strong>
{% else %}
<a href="/player/{{channel.channel}}/output/{{output.name}}">Channel {{channel.channel}}</a> <a href="/player/{{channel.channel}}/output/{{output.name}}">Channel {{channel.channel}}</a>
{% endif %}
{% endfor %} {% endfor %}
- -
{% endif %}{% if output.name %}{{output.name}}{% else %}System Default Output{% endif %}<br> {% endif %}{% if output.name %}{{output.name}}{% else %}System Default Output{% endif %}<br>