Skip to content

Commit

Permalink
Set echoCancellation: false, autoGainControl: false, noiseSuppression…
Browse files Browse the repository at this point in the history
…: false. Set version to 1.0.41.
  • Loading branch information
sletz committed Apr 5, 2024
1 parent a81402b commit fce46c6
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 77 deletions.
158 changes: 86 additions & 72 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "fausteditor",
"private": true,
"version": "1.0.40",
"version": "1.0.41",
"description": "A simple Faust editor for the web",
"scripts": {
"dev": "vite",
Expand All @@ -13,7 +13,7 @@
},
"dependencies": {
"@fortawesome/fontawesome-free": "^6.4.0",
"@grame/faustwasm": "^0.0.66",
"@grame/faustwasm": "^0.0.67",
"@shren/faust-ui": "^1.1.8",
"codemirror": "^5.58.2",
"qrcode": "^1.5.3",
Expand Down
2 changes: 1 addition & 1 deletion src/faustlive-wasm.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ const activateMIDIInput = () => {
const activateAudioInput = () => {
console.log("activateAudioInput");
if (navigator.mediaDevices && navigator.mediaDevices.getUserMedia) {
navigator.mediaDevices.getUserMedia({ audio: { echoCancellation: false } })
navigator.mediaDevices.getUserMedia({ audio: { echoCancellation: false, autoGainControl: false, noiseSuppression: false } })
.then(getDevice)
.catch((e) => {
alert('Error getting audio input');
Expand Down
2 changes: 1 addition & 1 deletion src/faustlive.js
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ window.addEventListener('touchstart', function () {

// Main entry point, called when libfaust.js has finished to load
function init() {
console.log('FaustEditor: version 1.0.40');
console.log('FaustEditor: version 1.0.41');

// Try to load code from current URL
configureEditorFromUrlParams();
Expand Down
2 changes: 1 addition & 1 deletion src/runfaust.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ export function activateAudioInput() {

if (navigator.getUserMedia) {
navigator.getUserMedia({
audio: { echoCancellation: false }
audio: { echoCancellation: false, autoGainControl: false, noiseSuppression: false }
}, getDevice, function (e) {
alert('Error getting audio input');
console.log(e);
Expand Down

0 comments on commit fce46c6

Please sign in to comment.