@4players/odin-plugin-web 1.0.3 → 1.1.1

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 CHANGED
@@ -6,6 +6,8 @@
6
6
 
7
7
  A backend plugin for the [@4players/odin](https://www.npmjs.com/package/@4players/odin) SDK package supporting web browsers.
8
8
 
9
+ [Online Documentation](https://docs.4players.io/voice/web)
10
+
9
11
  ## Troubleshooting
10
12
 
11
13
  Contact us through the listed methods below to receive answers to your questions and learn more about ODIN.
@@ -16,9 +18,9 @@ Join our official Discord server to chat with us directly and become a part of t
16
18
 
17
19
  [![Join us on Discord](https://www.4players.io/images/join_discord.png)](https://4np.de/discord)
18
20
 
19
- ### Twitter
21
+ ### X (formerly Twitter)
20
22
 
21
- Have a quick question? Tweet us at [@ODIN4Players](https://twitter.com/ODIN4Players) and we’ll help you resolve any issues.
23
+ Have a quick question? Tweet us at [@ODIN4Players](https://x.com/ODIN4Players) and we’ll help you resolve any issues.
22
24
 
23
25
  ### Email
24
26
 
@@ -45,7 +45,8 @@ set_target_properties(${CMAKE_EXECUTABLE_NAME} PROPERTIES
45
45
  -s WASM=1 \
46
46
  -s SINGLE_FILE=1 \
47
47
  -s ALLOW_TABLE_GROWTH=1 \
48
- -s BINARYEN_ASYNC_COMPILATION=0 \
48
+ -s BINARYEN_ASYNC_COMPILATION=1 \
49
+ -s WASM_ASYNC_COMPILATION=1 \
49
50
  -s FILESYSTEM=0 \
50
51
  -s ENVIRONMENT=web,worker \
51
52
  -s EXPORTED_FUNCTIONS=_malloc,_free \
@@ -15,7 +15,8 @@ export type AudioContextFactory = (sampleRate: number | undefined) => Promise<Au
15
15
  export type DeviceInfo = {
16
16
  name: string;
17
17
  deviceId: string;
18
- kind: "audioinput" | "audiooutput";
18
+ kind: "audioinput" | "audiooutput" | "track";
19
+ audioTrack?: MediaStreamTrack;
19
20
  };
20
21
  export interface WebDevice extends Backend.Device {
21
22
  readonly device: DeviceInfo;