@4players/odin-plugin-web 1.0.0-alpha.1 → 1.0.0-alpha.11
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/README.md +18 -18
- package/{backend/lib → lib/plugin}/audioController.d.ts +11 -6
- package/{backend/lib → lib/plugin}/audioController.js +100 -19
- package/{backend/lib → lib/plugin}/config.d.ts +0 -1
- package/{backend/lib → lib/plugin}/config.js +0 -1
- package/{backend/lib → lib/plugin}/connectionPool.d.ts +0 -1
- package/{backend/lib → lib/plugin}/connectionPool.js +0 -1
- package/{backend/lib → lib/plugin}/index.d.ts +1 -2
- package/{backend/lib → lib/plugin}/index.js +3 -2
- package/{backend/lib → lib/plugin}/mainConnection.d.ts +0 -1
- package/{backend/lib → lib/plugin}/mainConnection.js +0 -1
- package/{backend/lib → lib/plugin}/roomConnection.d.ts +0 -1
- package/{backend/lib → lib/plugin}/roomConnection.js +10 -6
- package/{backend/lib → lib/plugin}/rpcConnection.d.ts +0 -1
- package/{backend/lib → lib/plugin}/rpcConnection.js +0 -1
- package/{backend/lib → lib/plugin}/token.d.ts +2 -1
- package/{backend/lib → lib/plugin}/token.js +12 -1
- package/lib/worker/buffers.d.ts +42 -0
- package/lib/worker/buffers.js +79 -0
- package/{worker/lib/index.d.ts → lib/worker/common.d.ts} +7 -8
- package/lib/worker/common.js +7 -0
- package/lib/worker/config.d.ts +8 -0
- package/lib/worker/config.js +11 -0
- package/lib/worker/index.d.ts +3 -0
- package/lib/worker/index.js +1 -0
- package/lib/worker/memory.d.ts +9 -0
- package/lib/worker/memory.js +29 -0
- package/lib/worker/messages.d.ts +14 -0
- package/lib/worker/messages.js +15 -0
- package/lib/worker/packet.d.ts +11 -0
- package/lib/worker/packet.js +59 -0
- package/lib/worker/shared/capture.d.ts +28 -0
- package/lib/worker/shared/capture.js +63 -0
- package/lib/worker/shared/index.d.ts +3 -0
- package/lib/worker/shared/index.js +148 -0
- package/lib/worker/shared/messages.d.ts +67 -0
- package/lib/worker/shared/messages.js +64 -0
- package/lib/worker/shared/playback.d.ts +21 -0
- package/lib/worker/shared/playback.js +78 -0
- package/lib/worker/unshared/capture.d.ts +28 -0
- package/lib/worker/unshared/capture.js +66 -0
- package/lib/worker/unshared/index.d.ts +3 -0
- package/lib/worker/unshared/index.js +171 -0
- package/{worker/lib → lib/worker/unshared}/messages.d.ts +3 -15
- package/lib/worker/unshared/messages.js +80 -0
- package/lib/worker/unshared/playback.d.ts +23 -0
- package/lib/worker/unshared/playback.js +83 -0
- package/package.json +19 -16
- package/backend/lib/audioController.d.ts.map +0 -1
- package/backend/lib/audioController.js.map +0 -1
- package/backend/lib/config.d.ts.map +0 -1
- package/backend/lib/config.js.map +0 -1
- package/backend/lib/connectionPool.d.ts.map +0 -1
- package/backend/lib/connectionPool.js.map +0 -1
- package/backend/lib/index.d.ts.map +0 -1
- package/backend/lib/index.js.map +0 -1
- package/backend/lib/mainConnection.d.ts.map +0 -1
- package/backend/lib/mainConnection.js.map +0 -1
- package/backend/lib/roomConnection.d.ts.map +0 -1
- package/backend/lib/roomConnection.js.map +0 -1
- package/backend/lib/rpcConnection.d.ts.map +0 -1
- package/backend/lib/rpcConnection.js.map +0 -1
- package/backend/lib/token.d.ts.map +0 -1
- package/backend/lib/token.js.map +0 -1
- package/backend/package.json +0 -13
- package/wasm/lib/index.js +0 -19
- package/wasm/package.json +0 -14
- package/worker/lib/common.d.ts +0 -27
- package/worker/lib/index.js +0 -2
- package/worker/package.json +0 -13
- /package/{wasm/lib → lib/wasm}/index.d.ts +0 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// shared
|
|
2
|
+
export const AdditionalPlaybackBlocks = 3;
|
|
3
|
+
export const AdditionalCaptureBlocks = 3;
|
|
4
|
+
// unshared
|
|
5
|
+
export const PlaybackPreload = 3;
|
|
6
|
+
export const DefaultRefreshRate = 250;
|
|
7
|
+
// both
|
|
8
|
+
export const VadPreload = 3;
|
|
9
|
+
export const MaxNumberOfDecoders = 512;
|
|
10
|
+
export const RenderQuantumSize = 128;
|
|
11
|
+
export const MinDBFs = -758.596;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CaptureSink, CaptureWorker, PlaybackWorker } from './common';
|
|
2
|
+
export declare function createCaptureWorker(context: AudioContext, sink: CaptureSink, refreshRate?: number): Promise<CaptureWorker>;
|
|
3
|
+
export declare function createPlaybackWorker(audioContext: AudioContext, refreshRate?: number): Promise<PlaybackWorker>;
|