more jquery magic for progressbars

This commit is contained in:
Jakob Ketterl
2020-05-08 21:35:45 +02:00
parent fc7188145b
commit 9563adacf7
3 changed files with 43 additions and 11 deletions

View File

@ -1353,9 +1353,12 @@ function init_header() {
}
function initProgressBars() {
$('#openwebrx-bar-audio-buffer, #openwebrx-bar-audio-output').each(function() {
$(this).progressbar().setSampleRate(audioEngine.getSampleRate());
});
$(".openwebrx-progressbar").each(function(){
var bar = $(this).progressbar();
if ('setSampleRate' in bar) {
bar.setSampleRate(audioEngine.getSampleRate());
}
})
}
function audioReporter(stats) {