mirror of
https://github.com/sle118/squeezelite-esp32.git
synced 2025-12-09 21:17:18 +03:00
add SPDIF config
This commit is contained in:
@@ -304,6 +304,7 @@ function checkStatus(){
|
|||||||
|
|
||||||
//update wait screen
|
//update wait screen
|
||||||
$( "#loading" ).hide();
|
$( "#loading" ).hide();
|
||||||
|
$( "#connect-success" ).append("<p>Your IP address now is: " + text(data["ip"]) + "</p>");
|
||||||
$( "#connect-success" ).show();
|
$( "#connect-success" ).show();
|
||||||
$( "#connect-fail" ).hide();
|
$( "#connect-fail" ).hide();
|
||||||
}
|
}
|
||||||
@@ -418,6 +419,9 @@ function selectOutput(el) {
|
|||||||
if ($(el).attr('id') == 'bt') {
|
if ($(el).attr('id') == 'bt') {
|
||||||
$("#btsinkdiv").show(200);
|
$("#btsinkdiv").show(200);
|
||||||
output = 'bt';
|
output = 'bt';
|
||||||
|
} else if ($(el).attr('id') == 'spdif') {
|
||||||
|
$("#btsinkdiv").hide(200);
|
||||||
|
output = 'spdif';
|
||||||
} else {
|
} else {
|
||||||
$("#btsinkdiv").hide(200);
|
$("#btsinkdiv").hide(200);
|
||||||
output = 'i2s';
|
output = 'i2s';
|
||||||
@@ -429,6 +433,8 @@ function generateCommand() {
|
|||||||
|
|
||||||
if (output == 'bt') {
|
if (output == 'bt') {
|
||||||
commandLine += ' -o "BT -n \'' + $("#btsink").val() + '\'" -R -u m -Z 192000 -r "44100-44100"';
|
commandLine += ' -o "BT -n \'' + $("#btsink").val() + '\'" -R -u m -Z 192000 -r "44100-44100"';
|
||||||
|
} else if (output == 'spdif') {
|
||||||
|
commandLine += ' -o SPDIF';
|
||||||
} else {
|
} else {
|
||||||
commandLine += ' -o I2S';
|
commandLine += ' -o I2S';
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -186,6 +186,8 @@ function handleClick(cb) {
|
|||||||
<h2>Audio output</h2>
|
<h2>Audio output</h2>
|
||||||
<input type="radio" id="i2s" name="audio" />
|
<input type="radio" id="i2s" name="audio" />
|
||||||
<label for="i2s">I2S</label>
|
<label for="i2s">I2S</label>
|
||||||
|
<input type="radio" id="spdif" name="audio" />
|
||||||
|
<label for="spdif">SPDIF</label>
|
||||||
<input type="radio" id="bt" name="audio" />
|
<input type="radio" id="bt" name="audio" />
|
||||||
<label for="bt">Bluetooth</label>
|
<label for="bt">Bluetooth</label>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user