some small changes

This commit is contained in:
WolverinDEV 2019-06-20 12:05:07 +02:00
parent 4ab9e594d2
commit 0a952c2121
3 changed files with 11 additions and 4 deletions

View file

@ -34,6 +34,8 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<link rel="icon" href="./img/favicon.ico" type="image/x-icon">
<meta charset="UTF-8"> <meta charset="UTF-8">
<!-- App min width: 450px --> <!-- App min width: 450px -->
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, min-zoom=1, max-zoom: 1, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no, min-zoom=1, max-zoom: 1, user-scalable=no">

View file

@ -599,8 +599,10 @@ class ChannelEntry {
options = options.substr(0, options.indexOf("spacer")); options = options.substr(0, options.indexOf("spacer"));
console.log(tr("Channel options: '%o'"), options); console.log(tr("Channel options: '%o'"), options);
if(options.length == 0) options = "align-left"; if(options.length == 0)
else if(options.length > 1) options = options[0]; options = "l";
else if(options.length > 1)
options = options[0];
switch (options) { switch (options) {
case "r": case "r":

View file

@ -169,8 +169,11 @@ class RecorderProfile {
await filter.set_threshold(this.config.vad_threshold.threshold); await filter.set_threshold(this.config.vad_threshold.threshold);
await filter.set_margin_frames(10); /* 500ms */ await filter.set_margin_frames(10); /* 500ms */
filter.set_attack_smooth(.25); /* legacy client support */
filter.set_release_smooth(.9); if('set_attack_smooth' in filter)
filter.set_attack_smooth(.25);
if('set_release_smooth' in filter)
filter.set_release_smooth(.9);
this.input.enable_filter(audio.recorder.filter.Type.THRESHOLD); this.input.enable_filter(audio.recorder.filter.Type.THRESHOLD);
} else if(this.config.vad_type === "push_to_talk") { } else if(this.config.vad_type === "push_to_talk") {