@4players/odin-plugin-web 1.0.0-alpha.15 → 1.0.0-alpha.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/plugin/medias/audio-capture.js +6 -3
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
|
@@ -9,6 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
};
|
|
10
10
|
import { success } from '@4players/odin-common';
|
|
11
11
|
import { Silence } from '../../worker/common';
|
|
12
|
+
import { logger } from '../index';
|
|
12
13
|
import { createCaptureWorker } from '../../worker';
|
|
13
14
|
import { openCaptureDevice, stopMediaStream, enumerateDevices, } from '../deviceManager';
|
|
14
15
|
const defaultVad = {
|
|
@@ -71,7 +72,6 @@ export class AudioCapture {
|
|
|
71
72
|
navigator.mediaDevices.removeEventListener('devicechange', this._DeviceCb);
|
|
72
73
|
}
|
|
73
74
|
});
|
|
74
|
-
console.log('Eyvor AudioCapture constructor');
|
|
75
75
|
if (parameters.apm) {
|
|
76
76
|
this.setApm(parameters.apm);
|
|
77
77
|
}
|
|
@@ -130,7 +130,7 @@ export class AudioCapture {
|
|
|
130
130
|
setDevice(parameters) {
|
|
131
131
|
return __awaiter(this, void 0, void 0, function* () {
|
|
132
132
|
var _a;
|
|
133
|
-
|
|
133
|
+
logger.debug(['Device'], 'AudioCapture.setDevice() parameters: ', parameters);
|
|
134
134
|
const rollbackParams = this._DeviceParameters;
|
|
135
135
|
this._DeviceParameters = parameters;
|
|
136
136
|
if (this._Volume === 'muted') {
|
|
@@ -138,7 +138,10 @@ export class AudioCapture {
|
|
|
138
138
|
}
|
|
139
139
|
const device = yield openCaptureDevice(this.controller, parameters, this._Apm);
|
|
140
140
|
if (device.type !== 'Success') {
|
|
141
|
-
|
|
141
|
+
logger.error([
|
|
142
|
+
'Device',
|
|
143
|
+
`AudioCapture.setDevice() Unable to open capture device; ${device.reason}`,
|
|
144
|
+
]);
|
|
142
145
|
this._DeviceParameters = rollbackParams;
|
|
143
146
|
return;
|
|
144
147
|
}
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.0.0-alpha.
|
|
1
|
+
export declare const version = "1.0.0-alpha.16";
|
package/lib/version.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '1.0.0-alpha.
|
|
2
|
+
export const version = '1.0.0-alpha.16';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@4players/odin-plugin-web",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.16",
|
|
4
4
|
"description": "A backend plugin providing the custom WebAssembly audio processing module for ODIN web clients",
|
|
5
5
|
"homepage": "https://www.4players.io",
|
|
6
6
|
"repository": {
|