]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FS-9508 [verto_communicator] Adding AGC option on settings, enabled by default
authorItalo Rossi <italorossib@gmail.com>
Fri, 23 Sep 2016 14:08:04 +0000 (11:08 -0300)
committerAnthony Minessale <anthm@freeswitch.org>
Tue, 27 Sep 2016 21:07:00 +0000 (16:07 -0500)
html5/verto/verto_communicator/src/locales/locale-en.json
html5/verto/verto_communicator/src/locales/locale-pt.json
html5/verto/verto_communicator/src/partials/settings.html
html5/verto/verto_communicator/src/storageService/services/storage.js
html5/verto/verto_communicator/src/vertoService/services/vertoService.js

index ade59cc7d4562c63e8bad562767323b8f934a3e2..e7eddbe6528fb773dda8fc26d23fb1a34216de6b 100644 (file)
   "CHAT_GAIN_PLUS": "Gain +",
   "LANGUAGE": "Language:",
   "BROWSER_LANGUAGE": "Browser Language",
-  "FACTORY_RESET_SETTINGS": "Factory Reset Settings"
+  "FACTORY_RESET_SETTINGS": "Factory Reset Settings",
+  "AUTOGAIN_CONTROL": "Auto Gain Control"
 }
index 19f04512ba927d05c5e18be8743a30cb75e66d23..c1d8cee9cc5b0f50f8f8f6bc255f27c8a01af0e4 100644 (file)
   "CHAT_VOL_PLUS": "Vol +",
   "CHAT_GAIN_MINUS": "Ganho -",
   "CHAT_GAIN_PLUS": "Ganho +",
-  "FACTORY_RESET_SETTINGS": "Redefinir configurações"
+  "FACTORY_RESET_SETTINGS": "Redefinir configurações",
+  "AUTOGAIN_CONTROL": "Controle de Ganho Automático (AGC)"
 }
index 7e15a24e3b63b6e551be10b94a74550a01feeb88..92e7cfc1f7b44815b589b983a15cb8f11fcc3881 100644 (file)
               <span ng-bind="'HIGHPASS_FILTER' | translate"></span>
             </label>
           </div>
+          <div class="checkbox">
+            <label>
+              <input type="checkbox" name="googAutoGainControl" value="mydata.googAutoGainControl" ng-model="mydata.googAutoGainControl">
+              <span ng-bind="'AUTOGAIN_CONTROL' | translate"></span>
+            </label>
+          </div>
         </div>
       </div>
     </div>
index 8aff5ee61a8e7b48ae51b8cf626038aecda19e54..1cad676a029c96deea35b0adc193f822b8778a74 100644 (file)
@@ -38,6 +38,7 @@
           googNoiseSuppression: true,
           googHighpassFilter: true,
           googEchoCancellation: true,
+          googAutoGainControl: true,
           autoBand: true,
           testSpeedJoin: true,
           bestFrameRate: "15",
index 404c0c4a9f2ee3d7665d09e6e78ba1c27e5dbf4a..788653f2a4c0833e480660ad08f9320382ebba77 100644 (file)
@@ -711,9 +711,11 @@ vertoService.service('verto', ['$rootScope', '$cookieStore', '$location', 'stora
             ringFile: "sounds/bell_ring2.wav",
             // TODO: Add options for this.
             audioParams: {
-                googEchoCancellation: storage.data.googEchoCancellation || true,
-                googNoiseSuppression: storage.data.googNoiseSuppression || true,
-                googHighpassFilter: storage.data.googHighpassFilter || true
+                googEchoCancellation: storage.data.googEchoCancellation === undefined ? true : storage.data.googEchoCancellation,
+                googNoiseSuppression: storage.data.googNoiseSuppression === undefined ? true : storage.data.googNoiseSuppression,
+                googHighpassFilter: storage.data.googHighpassFilter === undefined ? true : storage.data.googHighpassFilter,
+                googAutoGainControl: storage.data.googAutoGainControl === undefined ? true : storage.data.googAutoGainControl,
+                googAutoGainControl2: storage.data.googAutoGainControl === undefined ? true : storage.data.googAutoGainControl
             },
             sessid: sessid,
             iceServers: storage.data.useSTUN