@hytopia.com/server-protocol 1.3.50 → 1.3.51

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/schemas/Audio.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hytopia.com/server-protocol",
3
- "version": "1.3.50",
3
+ "version": "1.3.51",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
package/schemas/Audio.ts CHANGED
@@ -5,6 +5,7 @@ import type { VectorSchema } from './Vector';
5
5
  export type AudioSchema = {
6
6
  i: number; // audio id
7
7
  a?: string; // audio uri
8
+ cd?: number; // cutoff distance
8
9
  d?: number; // duration
9
10
  de?: number; // detune
10
11
  di?: number; // distortion (0 to 1, or 1+)
@@ -26,6 +27,7 @@ export const audioSchema: JSONSchemaType<AudioSchema> = {
26
27
  properties: {
27
28
  i: { type: 'number' },
28
29
  a: { type: 'string', nullable: true },
30
+ cd: { type: 'number', nullable: true },
29
31
  d: { type: 'number', nullable: true },
30
32
  de: { type: 'number', nullable: true },
31
33
  di: { type: 'number', minimum: 0, nullable: true },