Skip to content

Commit 428e797

Browse files
update bbba wasm files, noiseSuppression true
1 parent d8f6a99 commit 428e797

6 files changed

Lines changed: 3 additions & 30 deletions

File tree

src/frontend/public/wasm/BBBA-mapi.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-8.82 KB
Binary file not shown.

src/frontend/public/wasm/BBBA-nosimd-mapi.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
-7.31 KB
Binary file not shown.

src/frontend/public/wasm/mapi-proc.js

Lines changed: 0 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ class MapiProcessorInstance {
3030
this.module = module;
3131
this.handle = module._mapi_create(sampleRate, nominalBufferSize);
3232
this.enabled = true;
33-
this.monitor_param = null;
34-
this.monitor_value = null;
3533

3634
this.audioData = module._malloc(module.HEAPF32.BYTES_PER_ELEMENT * nominalBufferSize);
3735
this.audioPtrs = module._malloc(module.HEAPU32.BYTES_PER_ELEMENT);
@@ -50,11 +48,6 @@ class MapiProcessorInstance {
5048
this.module._mapi_set_parameter(this.handle, this.csymbol(symbol), value);
5149
}
5250

53-
monitor(symbol) {
54-
this.monitor_param = symbol;
55-
this.monitor_value = this.module._mapi_get_parameter(this.handle, this.csymbol(symbol));
56-
}
57-
5851
process(buffer, bufferSize, bufferOffset) {
5952
if (! this.enabled)
6053
return;
@@ -66,14 +59,6 @@ class MapiProcessorInstance {
6659

6760
for (let i = 0; i < bufferSize; ++i)
6861
buffer[bufferOffset + i] = this.module.HEAPF32[this.audioData + (i << 2) >> 2];
69-
70-
if (this.monitor_param != null) {
71-
const value = this.module._mapi_get_parameter(this.handle, this.csymbol(this.monitor_param));
72-
if (this.monitor_value != value) {
73-
this.monitor_value = value;
74-
this.port.postMessage({ type: 'monitor', value: value });
75-
}
76-
}
7762
}
7863
};
7964

@@ -104,9 +89,6 @@ class MapiWorkletProcessor extends AudioWorkletProcessor {
10489
case 'enable':
10590
this.enable(event.data);
10691
break;
107-
case 'monitor':
108-
this.monitor(event.data);
109-
break;
11092
case 'param':
11193
this.param(event.data);
11294
break;
@@ -146,15 +128,6 @@ class MapiWorkletProcessor extends AudioWorkletProcessor {
146128
this.bbba.enabled = !!data.enable;
147129
}
148130

149-
monitor(data) {
150-
if (!this.bbba) {
151-
console.error('BBBA wasm is not loaded yet!');
152-
return;
153-
}
154-
155-
this.bbba.monitor(data.symbol);
156-
}
157-
158131
param(data) {
159132
if (!this.bbba) {
160133
console.error('BBBA wasm is not loaded yet!');

src/frontend/src/features/rooms/components/Join.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ export const Join = ({
217217
try {
218218
const track = await createLocalAudioTrack({
219219
deviceId: { exact: audioDeviceId },
220-
noiseSuppression: false,
220+
noiseSuppression: true,
221221
echoCancellation: true,
222222
autoGainControl: true,
223223
voiceIsolation: false,

0 commit comments

Comments
 (0)