Add real-time squelch control and clean up diagnostic logging

- Add updateAirbandSquelch() to restart audio when squelch slider changes
- Remove verbose diagnostic logging from audio streaming
- Remove tee diagnostic for raw rtl_fm output
- Keep error logging for troubleshooting
- Simplify audio stream generator

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Smittix
2026-01-15 17:17:15 +00:00
parent b183f5b171
commit 3b326d0fba
2 changed files with 14 additions and 76 deletions
+9 -1
View File
@@ -257,7 +257,7 @@
</select>
<div class="airband-sliders">
<span title="Squelch">SQ</span>
<input type="range" id="airbandSquelch" min="0" max="100" value="20" class="airband-controls" title="Squelch">
<input type="range" id="airbandSquelch" min="0" max="100" value="20" class="airband-controls" title="Squelch" onchange="updateAirbandSquelch()">
<span title="Volume">VOL</span>
<input type="range" id="airbandVolume" min="0" max="100" value="80" class="airband-controls" oninput="updateAirbandVolume()" title="Volume">
</div>
@@ -3221,6 +3221,14 @@ sudo make install</code>
}
}
function updateAirbandSquelch() {
// If airband is playing, restart with new squelch value
if (isAirbandPlaying) {
stopAirband();
setTimeout(() => startAirband(), 300);
}
}
// Initialize airband on page load
document.addEventListener('DOMContentLoaded', initAirband);