Add default audio output option and improve text.

This commit is contained in:
Matthew Stratford 2021-09-02 00:34:36 +01:00
parent e3854b5248
commit 0076ea9c24

View file

@ -4,13 +4,21 @@
<p>
<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.
<strong>On MacOS:</strong> The available output devices will not update automatically, the BAPSicle 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>
<strong>Player {{channel.channel}}:</strong> {% if channel.output %}{{channel.output}}{% else %}Default Audio Device{% endif %}<br>
{% endfor %}
<br/>
<code>
Set for:
{% for channel in data.channels %}
<a href="/player/{{channel.channel}}/output/None">Player {{channel.channel}}</a> /
{% endfor %}
Default Audio Output
</code>
</p>
{% for host_api in data.outputs %}
{{host_api.name}}
@ -21,12 +29,12 @@
Set for:
{% for channel in data.channels %}
{% if channel.output == output.name %}
<strong>Channel {{channel.channel}}</strong>
<strong>Player {{channel.channel}}</strong>
{% else %}
<a href="/player/{{channel.channel}}/output/{{output.name}}">Channel {{channel.channel}}</a>
<a href="/player/{{channel.channel}}/output/{{output.name}}">Player {{channel.channel}}</a>
{% endif %}
/
{% endfor %}
-
{% endif %}{% if output.name %}{{output.name}}{% else %}System Default Output{% endif %}<br>
{% endfor %}
</code>