@dcl/playground-assets 7.23.1-25388906090.commit-25d2de7 → 7.23.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/dist/alpha.d.ts +54 -2
- package/dist/beta.d.ts +54 -2
- package/dist/index.bundled.d.ts +54 -2
- package/dist/index.js +6 -6
- package/dist/playground/sdk/dcl-sdk.package.json +2 -2
- package/dist/playground-assets.d.ts +54 -2
- package/etc/playground-assets.api.json +380 -6
- package/etc/playground-assets.api.md +23 -1
- package/package.json +4 -4
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/sdk",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.23.1
|
|
4
|
+
"version": "7.23.1",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"@dcl/ecs": "file:../ecs",
|
|
@@ -35,5 +35,5 @@
|
|
|
35
35
|
},
|
|
36
36
|
"types": "./index.d.ts",
|
|
37
37
|
"typings": "./index.d.ts",
|
|
38
|
-
"commit": "
|
|
38
|
+
"commit": "a5e926314e66f7a2f1ddaa92af20589ec871c1ca"
|
|
39
39
|
}
|
|
@@ -115,8 +115,60 @@ export declare const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
|
|
|
115
115
|
*/
|
|
116
116
|
export declare type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
|
|
117
117
|
|
|
118
|
-
|
|
119
|
-
|
|
118
|
+
export declare const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
|
|
119
|
+
|
|
120
|
+
export declare interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
|
|
121
|
+
/**
|
|
122
|
+
* Reads the component data of `entity` into the provided `out` view.
|
|
123
|
+
*
|
|
124
|
+
* @throws Error if the entity does not have an AudioAnalysis component.
|
|
125
|
+
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
126
|
+
* @param out - An existing AudioAnalysisView to populate with the latest values.
|
|
127
|
+
*/
|
|
128
|
+
readIntoView(entity: Entity, out: AudioAnalysisView): void;
|
|
129
|
+
/**
|
|
130
|
+
* Attempts to read the component data of `entity` into the provided `out` view.
|
|
131
|
+
*
|
|
132
|
+
* @returns `true` if the component exists and data was written into `out`,
|
|
133
|
+
* `false` if the entity does not have an AudioAnalysis component.
|
|
134
|
+
* @param entity - The entity whose AudioAnalysis data will be read.
|
|
135
|
+
* @param out - An existing AudioAnalysisView to populate.
|
|
136
|
+
*/
|
|
137
|
+
tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Creates an AudioAnalysis component for the given `entity`.
|
|
140
|
+
*
|
|
141
|
+
* If a component already exists on the entity, this call fails (does not replace).
|
|
142
|
+
*
|
|
143
|
+
* @param entity - The entity to attach the component to.
|
|
144
|
+
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
145
|
+
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
146
|
+
* @param bandsGain - Optional gain multiplier applied to all frequency bands.
|
|
147
|
+
*/
|
|
148
|
+
createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
149
|
+
amplitudeGain?: number, bandsGain?: number): void;
|
|
150
|
+
/**
|
|
151
|
+
* Creates the AudioAnalysis component if missing, or replaces the existing one.
|
|
152
|
+
*
|
|
153
|
+
* @param entity - The target entity.
|
|
154
|
+
* @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.
|
|
155
|
+
* @param amplitudeGain - Optional amplitude gain multiplier.
|
|
156
|
+
* @param bandsGain - Optional gain multiplier applied to the frequency bands.
|
|
157
|
+
*/
|
|
158
|
+
createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
159
|
+
amplitudeGain?: number, bandsGain?: number): void;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* A read-only JavaScript-friendly view of AudioAnalysis ECS data.
|
|
164
|
+
*
|
|
165
|
+
* `amplitude` represents the aggregated signal strength.
|
|
166
|
+
* `bands` represents the processed frequency bands.
|
|
167
|
+
*/
|
|
168
|
+
export declare type AudioAnalysisView = {
|
|
169
|
+
amplitude: number;
|
|
170
|
+
bands: number[];
|
|
171
|
+
};
|
|
120
172
|
|
|
121
173
|
/** @public */
|
|
122
174
|
export declare const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
|
@@ -1168,12 +1168,36 @@
|
|
|
1168
1168
|
{
|
|
1169
1169
|
"kind": "Variable",
|
|
1170
1170
|
"canonicalReference": "@dcl/playground-assets!AudioAnalysis:var",
|
|
1171
|
-
"docComment": "
|
|
1171
|
+
"docComment": "",
|
|
1172
1172
|
"excerptTokens": [
|
|
1173
1173
|
{
|
|
1174
1174
|
"kind": "Content",
|
|
1175
1175
|
"text": "AudioAnalysis: "
|
|
1176
1176
|
},
|
|
1177
|
+
{
|
|
1178
|
+
"kind": "Reference",
|
|
1179
|
+
"text": "AudioAnalysisComponentDefinitionExtended",
|
|
1180
|
+
"canonicalReference": "@dcl/playground-assets!AudioAnalysisComponentDefinitionExtended:interface"
|
|
1181
|
+
}
|
|
1182
|
+
],
|
|
1183
|
+
"fileUrlPath": "../ecs/dist/index.d.ts",
|
|
1184
|
+
"isReadonly": true,
|
|
1185
|
+
"releaseTag": "Public",
|
|
1186
|
+
"name": "AudioAnalysis",
|
|
1187
|
+
"variableTypeTokenRange": {
|
|
1188
|
+
"startIndex": 1,
|
|
1189
|
+
"endIndex": 2
|
|
1190
|
+
}
|
|
1191
|
+
},
|
|
1192
|
+
{
|
|
1193
|
+
"kind": "Interface",
|
|
1194
|
+
"canonicalReference": "@dcl/playground-assets!AudioAnalysisComponentDefinitionExtended:interface",
|
|
1195
|
+
"docComment": "",
|
|
1196
|
+
"excerptTokens": [
|
|
1197
|
+
{
|
|
1198
|
+
"kind": "Content",
|
|
1199
|
+
"text": "export interface AudioAnalysisComponentDefinitionExtended extends "
|
|
1200
|
+
},
|
|
1177
1201
|
{
|
|
1178
1202
|
"kind": "Reference",
|
|
1179
1203
|
"text": "LastWriteWinElementSetComponentDefinition",
|
|
@@ -1191,15 +1215,365 @@
|
|
|
1191
1215
|
{
|
|
1192
1216
|
"kind": "Content",
|
|
1193
1217
|
"text": ">"
|
|
1218
|
+
},
|
|
1219
|
+
{
|
|
1220
|
+
"kind": "Content",
|
|
1221
|
+
"text": " "
|
|
1194
1222
|
}
|
|
1195
1223
|
],
|
|
1196
|
-
"fileUrlPath": "../ecs/dist/components/
|
|
1197
|
-
"isReadonly": true,
|
|
1224
|
+
"fileUrlPath": "../ecs/dist/components/extended/AudioAnalysis.d.ts",
|
|
1198
1225
|
"releaseTag": "Public",
|
|
1199
|
-
"name": "
|
|
1200
|
-
"
|
|
1226
|
+
"name": "AudioAnalysisComponentDefinitionExtended",
|
|
1227
|
+
"preserveMemberOrder": false,
|
|
1228
|
+
"members": [
|
|
1229
|
+
{
|
|
1230
|
+
"kind": "MethodSignature",
|
|
1231
|
+
"canonicalReference": "@dcl/playground-assets!AudioAnalysisComponentDefinitionExtended#createAudioAnalysis:member(1)",
|
|
1232
|
+
"docComment": "/**\n * Creates an AudioAnalysis component for the given `entity`.\n *\n * If a component already exists on the entity, this call fails (does not replace).\n *\n * @param entity - The entity to attach the component to.\n *\n * @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.\n *\n * @param amplitudeGain - Optional amplitude gain multiplier.\n *\n * @param bandsGain - Optional gain multiplier applied to all frequency bands.\n */\n",
|
|
1233
|
+
"excerptTokens": [
|
|
1234
|
+
{
|
|
1235
|
+
"kind": "Content",
|
|
1236
|
+
"text": "createAudioAnalysis(entity: "
|
|
1237
|
+
},
|
|
1238
|
+
{
|
|
1239
|
+
"kind": "Reference",
|
|
1240
|
+
"text": "Entity",
|
|
1241
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
1242
|
+
},
|
|
1243
|
+
{
|
|
1244
|
+
"kind": "Content",
|
|
1245
|
+
"text": ", mode?: "
|
|
1246
|
+
},
|
|
1247
|
+
{
|
|
1248
|
+
"kind": "Reference",
|
|
1249
|
+
"text": "PBAudioAnalysisMode",
|
|
1250
|
+
"canonicalReference": "@dcl/playground-assets!PBAudioAnalysisMode:enum"
|
|
1251
|
+
},
|
|
1252
|
+
{
|
|
1253
|
+
"kind": "Content",
|
|
1254
|
+
"text": ", // default is PBAudioAnalysisMode.MODE_LOGARITHMIC\n amplitudeGain?: "
|
|
1255
|
+
},
|
|
1256
|
+
{
|
|
1257
|
+
"kind": "Content",
|
|
1258
|
+
"text": "number"
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"kind": "Content",
|
|
1262
|
+
"text": ", bandsGain?: "
|
|
1263
|
+
},
|
|
1264
|
+
{
|
|
1265
|
+
"kind": "Content",
|
|
1266
|
+
"text": "number"
|
|
1267
|
+
},
|
|
1268
|
+
{
|
|
1269
|
+
"kind": "Content",
|
|
1270
|
+
"text": "): "
|
|
1271
|
+
},
|
|
1272
|
+
{
|
|
1273
|
+
"kind": "Content",
|
|
1274
|
+
"text": "void"
|
|
1275
|
+
},
|
|
1276
|
+
{
|
|
1277
|
+
"kind": "Content",
|
|
1278
|
+
"text": ";"
|
|
1279
|
+
}
|
|
1280
|
+
],
|
|
1281
|
+
"isOptional": false,
|
|
1282
|
+
"returnTypeTokenRange": {
|
|
1283
|
+
"startIndex": 9,
|
|
1284
|
+
"endIndex": 10
|
|
1285
|
+
},
|
|
1286
|
+
"releaseTag": "Public",
|
|
1287
|
+
"overloadIndex": 1,
|
|
1288
|
+
"parameters": [
|
|
1289
|
+
{
|
|
1290
|
+
"parameterName": "entity",
|
|
1291
|
+
"parameterTypeTokenRange": {
|
|
1292
|
+
"startIndex": 1,
|
|
1293
|
+
"endIndex": 2
|
|
1294
|
+
},
|
|
1295
|
+
"isOptional": false
|
|
1296
|
+
},
|
|
1297
|
+
{
|
|
1298
|
+
"parameterName": "mode",
|
|
1299
|
+
"parameterTypeTokenRange": {
|
|
1300
|
+
"startIndex": 3,
|
|
1301
|
+
"endIndex": 4
|
|
1302
|
+
},
|
|
1303
|
+
"isOptional": true
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"parameterName": "amplitudeGain",
|
|
1307
|
+
"parameterTypeTokenRange": {
|
|
1308
|
+
"startIndex": 5,
|
|
1309
|
+
"endIndex": 6
|
|
1310
|
+
},
|
|
1311
|
+
"isOptional": true
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
"parameterName": "bandsGain",
|
|
1315
|
+
"parameterTypeTokenRange": {
|
|
1316
|
+
"startIndex": 7,
|
|
1317
|
+
"endIndex": 8
|
|
1318
|
+
},
|
|
1319
|
+
"isOptional": true
|
|
1320
|
+
}
|
|
1321
|
+
],
|
|
1322
|
+
"name": "createAudioAnalysis"
|
|
1323
|
+
},
|
|
1324
|
+
{
|
|
1325
|
+
"kind": "MethodSignature",
|
|
1326
|
+
"canonicalReference": "@dcl/playground-assets!AudioAnalysisComponentDefinitionExtended#createOrReplaceAudioAnalysis:member(1)",
|
|
1327
|
+
"docComment": "/**\n * Creates the AudioAnalysis component if missing, or replaces the existing one.\n *\n * @param entity - The target entity.\n *\n * @param mode - Analysis mode. Defaults to `PBAudioAnalysisMode.MODE_LOGARITHMIC`.\n *\n * @param amplitudeGain - Optional amplitude gain multiplier.\n *\n * @param bandsGain - Optional gain multiplier applied to the frequency bands.\n */\n",
|
|
1328
|
+
"excerptTokens": [
|
|
1329
|
+
{
|
|
1330
|
+
"kind": "Content",
|
|
1331
|
+
"text": "createOrReplaceAudioAnalysis(entity: "
|
|
1332
|
+
},
|
|
1333
|
+
{
|
|
1334
|
+
"kind": "Reference",
|
|
1335
|
+
"text": "Entity",
|
|
1336
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
1337
|
+
},
|
|
1338
|
+
{
|
|
1339
|
+
"kind": "Content",
|
|
1340
|
+
"text": ", mode?: "
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
"kind": "Reference",
|
|
1344
|
+
"text": "PBAudioAnalysisMode",
|
|
1345
|
+
"canonicalReference": "@dcl/playground-assets!PBAudioAnalysisMode:enum"
|
|
1346
|
+
},
|
|
1347
|
+
{
|
|
1348
|
+
"kind": "Content",
|
|
1349
|
+
"text": ", // default is PBAudioAnalysisMode.MODE_LOGARITHMIC\n amplitudeGain?: "
|
|
1350
|
+
},
|
|
1351
|
+
{
|
|
1352
|
+
"kind": "Content",
|
|
1353
|
+
"text": "number"
|
|
1354
|
+
},
|
|
1355
|
+
{
|
|
1356
|
+
"kind": "Content",
|
|
1357
|
+
"text": ", bandsGain?: "
|
|
1358
|
+
},
|
|
1359
|
+
{
|
|
1360
|
+
"kind": "Content",
|
|
1361
|
+
"text": "number"
|
|
1362
|
+
},
|
|
1363
|
+
{
|
|
1364
|
+
"kind": "Content",
|
|
1365
|
+
"text": "): "
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
"kind": "Content",
|
|
1369
|
+
"text": "void"
|
|
1370
|
+
},
|
|
1371
|
+
{
|
|
1372
|
+
"kind": "Content",
|
|
1373
|
+
"text": ";"
|
|
1374
|
+
}
|
|
1375
|
+
],
|
|
1376
|
+
"isOptional": false,
|
|
1377
|
+
"returnTypeTokenRange": {
|
|
1378
|
+
"startIndex": 9,
|
|
1379
|
+
"endIndex": 10
|
|
1380
|
+
},
|
|
1381
|
+
"releaseTag": "Public",
|
|
1382
|
+
"overloadIndex": 1,
|
|
1383
|
+
"parameters": [
|
|
1384
|
+
{
|
|
1385
|
+
"parameterName": "entity",
|
|
1386
|
+
"parameterTypeTokenRange": {
|
|
1387
|
+
"startIndex": 1,
|
|
1388
|
+
"endIndex": 2
|
|
1389
|
+
},
|
|
1390
|
+
"isOptional": false
|
|
1391
|
+
},
|
|
1392
|
+
{
|
|
1393
|
+
"parameterName": "mode",
|
|
1394
|
+
"parameterTypeTokenRange": {
|
|
1395
|
+
"startIndex": 3,
|
|
1396
|
+
"endIndex": 4
|
|
1397
|
+
},
|
|
1398
|
+
"isOptional": true
|
|
1399
|
+
},
|
|
1400
|
+
{
|
|
1401
|
+
"parameterName": "amplitudeGain",
|
|
1402
|
+
"parameterTypeTokenRange": {
|
|
1403
|
+
"startIndex": 5,
|
|
1404
|
+
"endIndex": 6
|
|
1405
|
+
},
|
|
1406
|
+
"isOptional": true
|
|
1407
|
+
},
|
|
1408
|
+
{
|
|
1409
|
+
"parameterName": "bandsGain",
|
|
1410
|
+
"parameterTypeTokenRange": {
|
|
1411
|
+
"startIndex": 7,
|
|
1412
|
+
"endIndex": 8
|
|
1413
|
+
},
|
|
1414
|
+
"isOptional": true
|
|
1415
|
+
}
|
|
1416
|
+
],
|
|
1417
|
+
"name": "createOrReplaceAudioAnalysis"
|
|
1418
|
+
},
|
|
1419
|
+
{
|
|
1420
|
+
"kind": "MethodSignature",
|
|
1421
|
+
"canonicalReference": "@dcl/playground-assets!AudioAnalysisComponentDefinitionExtended#readIntoView:member(1)",
|
|
1422
|
+
"docComment": "/**\n * Reads the component data of `entity` into the provided `out` view.\n *\n * @param entity - The entity whose AudioAnalysis data will be read.\n *\n * @param out - An existing AudioAnalysisView to populate with the latest values.\n *\n * @throws\n *\n * Error if the entity does not have an AudioAnalysis component.\n */\n",
|
|
1423
|
+
"excerptTokens": [
|
|
1424
|
+
{
|
|
1425
|
+
"kind": "Content",
|
|
1426
|
+
"text": "readIntoView(entity: "
|
|
1427
|
+
},
|
|
1428
|
+
{
|
|
1429
|
+
"kind": "Reference",
|
|
1430
|
+
"text": "Entity",
|
|
1431
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
1432
|
+
},
|
|
1433
|
+
{
|
|
1434
|
+
"kind": "Content",
|
|
1435
|
+
"text": ", out: "
|
|
1436
|
+
},
|
|
1437
|
+
{
|
|
1438
|
+
"kind": "Reference",
|
|
1439
|
+
"text": "AudioAnalysisView",
|
|
1440
|
+
"canonicalReference": "@dcl/playground-assets!AudioAnalysisView:type"
|
|
1441
|
+
},
|
|
1442
|
+
{
|
|
1443
|
+
"kind": "Content",
|
|
1444
|
+
"text": "): "
|
|
1445
|
+
},
|
|
1446
|
+
{
|
|
1447
|
+
"kind": "Content",
|
|
1448
|
+
"text": "void"
|
|
1449
|
+
},
|
|
1450
|
+
{
|
|
1451
|
+
"kind": "Content",
|
|
1452
|
+
"text": ";"
|
|
1453
|
+
}
|
|
1454
|
+
],
|
|
1455
|
+
"isOptional": false,
|
|
1456
|
+
"returnTypeTokenRange": {
|
|
1457
|
+
"startIndex": 5,
|
|
1458
|
+
"endIndex": 6
|
|
1459
|
+
},
|
|
1460
|
+
"releaseTag": "Public",
|
|
1461
|
+
"overloadIndex": 1,
|
|
1462
|
+
"parameters": [
|
|
1463
|
+
{
|
|
1464
|
+
"parameterName": "entity",
|
|
1465
|
+
"parameterTypeTokenRange": {
|
|
1466
|
+
"startIndex": 1,
|
|
1467
|
+
"endIndex": 2
|
|
1468
|
+
},
|
|
1469
|
+
"isOptional": false
|
|
1470
|
+
},
|
|
1471
|
+
{
|
|
1472
|
+
"parameterName": "out",
|
|
1473
|
+
"parameterTypeTokenRange": {
|
|
1474
|
+
"startIndex": 3,
|
|
1475
|
+
"endIndex": 4
|
|
1476
|
+
},
|
|
1477
|
+
"isOptional": false
|
|
1478
|
+
}
|
|
1479
|
+
],
|
|
1480
|
+
"name": "readIntoView"
|
|
1481
|
+
},
|
|
1482
|
+
{
|
|
1483
|
+
"kind": "MethodSignature",
|
|
1484
|
+
"canonicalReference": "@dcl/playground-assets!AudioAnalysisComponentDefinitionExtended#tryReadIntoView:member(1)",
|
|
1485
|
+
"docComment": "/**\n * Attempts to read the component data of `entity` into the provided `out` view.\n *\n * @param entity - The entity whose AudioAnalysis data will be read.\n *\n * @param out - An existing AudioAnalysisView to populate.\n *\n * @returns `true` if the component exists and data was written into `out`, `false` if the entity does not have an AudioAnalysis component.\n */\n",
|
|
1486
|
+
"excerptTokens": [
|
|
1487
|
+
{
|
|
1488
|
+
"kind": "Content",
|
|
1489
|
+
"text": "tryReadIntoView(entity: "
|
|
1490
|
+
},
|
|
1491
|
+
{
|
|
1492
|
+
"kind": "Reference",
|
|
1493
|
+
"text": "Entity",
|
|
1494
|
+
"canonicalReference": "@dcl/playground-assets!Entity:type"
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
"kind": "Content",
|
|
1498
|
+
"text": ", out: "
|
|
1499
|
+
},
|
|
1500
|
+
{
|
|
1501
|
+
"kind": "Reference",
|
|
1502
|
+
"text": "AudioAnalysisView",
|
|
1503
|
+
"canonicalReference": "@dcl/playground-assets!AudioAnalysisView:type"
|
|
1504
|
+
},
|
|
1505
|
+
{
|
|
1506
|
+
"kind": "Content",
|
|
1507
|
+
"text": "): "
|
|
1508
|
+
},
|
|
1509
|
+
{
|
|
1510
|
+
"kind": "Content",
|
|
1511
|
+
"text": "boolean"
|
|
1512
|
+
},
|
|
1513
|
+
{
|
|
1514
|
+
"kind": "Content",
|
|
1515
|
+
"text": ";"
|
|
1516
|
+
}
|
|
1517
|
+
],
|
|
1518
|
+
"isOptional": false,
|
|
1519
|
+
"returnTypeTokenRange": {
|
|
1520
|
+
"startIndex": 5,
|
|
1521
|
+
"endIndex": 6
|
|
1522
|
+
},
|
|
1523
|
+
"releaseTag": "Public",
|
|
1524
|
+
"overloadIndex": 1,
|
|
1525
|
+
"parameters": [
|
|
1526
|
+
{
|
|
1527
|
+
"parameterName": "entity",
|
|
1528
|
+
"parameterTypeTokenRange": {
|
|
1529
|
+
"startIndex": 1,
|
|
1530
|
+
"endIndex": 2
|
|
1531
|
+
},
|
|
1532
|
+
"isOptional": false
|
|
1533
|
+
},
|
|
1534
|
+
{
|
|
1535
|
+
"parameterName": "out",
|
|
1536
|
+
"parameterTypeTokenRange": {
|
|
1537
|
+
"startIndex": 3,
|
|
1538
|
+
"endIndex": 4
|
|
1539
|
+
},
|
|
1540
|
+
"isOptional": false
|
|
1541
|
+
}
|
|
1542
|
+
],
|
|
1543
|
+
"name": "tryReadIntoView"
|
|
1544
|
+
}
|
|
1545
|
+
],
|
|
1546
|
+
"extendsTokenRanges": [
|
|
1547
|
+
{
|
|
1548
|
+
"startIndex": 1,
|
|
1549
|
+
"endIndex": 5
|
|
1550
|
+
}
|
|
1551
|
+
]
|
|
1552
|
+
},
|
|
1553
|
+
{
|
|
1554
|
+
"kind": "TypeAlias",
|
|
1555
|
+
"canonicalReference": "@dcl/playground-assets!AudioAnalysisView:type",
|
|
1556
|
+
"docComment": "/**\n * A read-only JavaScript-friendly view of AudioAnalysis ECS data.\n *\n * `amplitude` represents the aggregated signal strength. `bands` represents the processed frequency bands.\n */\n",
|
|
1557
|
+
"excerptTokens": [
|
|
1558
|
+
{
|
|
1559
|
+
"kind": "Content",
|
|
1560
|
+
"text": "export type AudioAnalysisView = "
|
|
1561
|
+
},
|
|
1562
|
+
{
|
|
1563
|
+
"kind": "Content",
|
|
1564
|
+
"text": "{\n amplitude: number;\n bands: number[];\n}"
|
|
1565
|
+
},
|
|
1566
|
+
{
|
|
1567
|
+
"kind": "Content",
|
|
1568
|
+
"text": ";"
|
|
1569
|
+
}
|
|
1570
|
+
],
|
|
1571
|
+
"fileUrlPath": "../ecs/dist/components/extended/AudioAnalysis.d.ts",
|
|
1572
|
+
"releaseTag": "Public",
|
|
1573
|
+
"name": "AudioAnalysisView",
|
|
1574
|
+
"typeTokenRange": {
|
|
1201
1575
|
"startIndex": 1,
|
|
1202
|
-
"endIndex":
|
|
1576
|
+
"endIndex": 2
|
|
1203
1577
|
}
|
|
1204
1578
|
},
|
|
1205
1579
|
{
|
|
@@ -70,8 +70,30 @@ export const assetLoadLoadingStateSystem: AssetLoadLoadingStateSystem;
|
|
|
70
70
|
// @public (undocumented)
|
|
71
71
|
export type AssetLoadLoadingStateSystemCallback = (event: DeepReadonlyObject<PBAssetLoadLoadingState>) => void;
|
|
72
72
|
|
|
73
|
+
// Warning: (ae-missing-release-tag) "AudioAnalysis" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
74
|
+
//
|
|
73
75
|
// @public (undocumented)
|
|
74
|
-
export const AudioAnalysis:
|
|
76
|
+
export const AudioAnalysis: AudioAnalysisComponentDefinitionExtended;
|
|
77
|
+
|
|
78
|
+
// Warning: (ae-missing-release-tag) "AudioAnalysisComponentDefinitionExtended" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
79
|
+
//
|
|
80
|
+
// @public (undocumented)
|
|
81
|
+
export interface AudioAnalysisComponentDefinitionExtended extends LastWriteWinElementSetComponentDefinition<PBAudioAnalysis> {
|
|
82
|
+
createAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
83
|
+
amplitudeGain?: number, bandsGain?: number): void;
|
|
84
|
+
createOrReplaceAudioAnalysis(entity: Entity, mode?: PBAudioAnalysisMode, // default is PBAudioAnalysisMode.MODE_LOGARITHMIC
|
|
85
|
+
amplitudeGain?: number, bandsGain?: number): void;
|
|
86
|
+
readIntoView(entity: Entity, out: AudioAnalysisView): void;
|
|
87
|
+
tryReadIntoView(entity: Entity, out: AudioAnalysisView): boolean;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Warning: (ae-missing-release-tag) "AudioAnalysisView" is part of the package's API, but it is missing a release tag (@alpha, @beta, @public, or @internal)
|
|
91
|
+
//
|
|
92
|
+
// @public
|
|
93
|
+
export type AudioAnalysisView = {
|
|
94
|
+
amplitude: number;
|
|
95
|
+
bands: number[];
|
|
96
|
+
};
|
|
75
97
|
|
|
76
98
|
// @public (undocumented)
|
|
77
99
|
export const AudioEvent: GrowOnlyValueSetComponentDefinition<PBAudioEvent>;
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcl/playground-assets",
|
|
3
3
|
"description": "",
|
|
4
|
-
"version": "7.23.1
|
|
4
|
+
"version": "7.23.1",
|
|
5
5
|
"author": "Decentraland",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@dcl/js-runtime": "7.23.1
|
|
8
|
-
"@dcl/sdk": "7.23.1
|
|
7
|
+
"@dcl/js-runtime": "7.23.1",
|
|
8
|
+
"@dcl/sdk": "7.23.1"
|
|
9
9
|
},
|
|
10
10
|
"devDependencies": {
|
|
11
11
|
"@microsoft/api-extractor": "^7.33.8"
|
|
@@ -32,5 +32,5 @@
|
|
|
32
32
|
},
|
|
33
33
|
"types": "./dist/index.d.ts",
|
|
34
34
|
"typings": "./dist/index.d.ts",
|
|
35
|
-
"commit": "
|
|
35
|
+
"commit": "a5e926314e66f7a2f1ddaa92af20589ec871c1ca"
|
|
36
36
|
}
|