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>
<html lang="en">
<head>
<link rel="icon" href="./img/favicon.ico" type="image/x-icon">
<meta charset="UTF-8">
<!-- 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">

View file

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

View file

@ -169,8 +169,11 @@ class RecorderProfile {
await filter.set_threshold(this.config.vad_threshold.threshold);
await filter.set_margin_frames(10); /* 500ms */
filter.set_attack_smooth(.25);
filter.set_release_smooth(.9);
/* legacy client support */
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);
} else if(this.config.vad_type === "push_to_talk") {