@opendaw/studio-core 0.0.50 → 0.0.52

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.
@@ -1,5 +1,5 @@
1
- import { AcceptedSource } from "./FFmpegWorker";
2
1
  import { Progress } from "@opendaw/lib-std";
2
+ import type { AcceptedSource } from "./FFmpegWorker";
3
3
  export interface FFmpegConverter<OPTIONS> {
4
4
  convert(source: AcceptedSource, progress: Progress.Handler, options?: OPTIONS): Promise<ArrayBuffer>;
5
5
  }
@@ -1 +1 @@
1
- {"version":3,"file":"FFmpegConverter.d.ts","sourceRoot":"","sources":["../../src/ffmpeg/FFmpegConverter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAA;AAC7C,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAEzC,MAAM,WAAW,eAAe,CAAC,OAAO;IACpC,OAAO,CAAC,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAC1B,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;CACnD"}
1
+ {"version":3,"file":"FFmpegConverter.d.ts","sourceRoot":"","sources":["../../src/ffmpeg/FFmpegConverter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AACzC,OAAO,KAAK,EAAC,cAAc,EAAC,MAAM,gBAAgB,CAAA;AAElD,MAAM,WAAW,eAAe,CAAC,OAAO;IACpC,OAAO,CAAC,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAC1B,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC,WAAW,CAAC,CAAA;CACnD"}
@@ -1,6 +1,6 @@
1
- import { FFmpegConverter } from "./FFmpegConverter";
2
1
  import { int, Progress } from "@opendaw/lib-std";
3
- import { AcceptedSource, FFmpegWorker } from "./FFmpegWorker";
2
+ import type { FFmpegConverter } from "./FFmpegConverter";
3
+ import type { AcceptedSource, FFmpegWorker } from "./FFmpegWorker";
4
4
  export type FlacOptions = {
5
5
  compression: int;
6
6
  };
@@ -1 +1 @@
1
- {"version":3,"file":"flac.d.ts","sourceRoot":"","sources":["../../src/ffmpeg/flac.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAA;AACjD,OAAO,EAAC,GAAG,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAC9C,OAAO,EAAC,cAAc,EAAE,YAAY,EAAC,MAAM,gBAAgB,CAAA;AAG3D,MAAM,MAAM,WAAW,GAAG;IAAE,WAAW,EAAE,GAAG,CAAA;CAAE,CAAA;AAE9C,qBAAa,aAAc,YAAW,eAAe,CAAC,WAAW,CAAC;;gBAGlD,MAAM,EAAE,YAAY;IAC1B,OAAO,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;CA0BjH"}
1
+ {"version":3,"file":"flac.d.ts","sourceRoot":"","sources":["../../src/ffmpeg/flac.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,GAAG,EAAE,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AAC9C,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAA;AACtD,OAAO,KAAK,EAAC,cAAc,EAAE,YAAY,EAAC,MAAM,gBAAgB,CAAA;AAGhE,MAAM,MAAM,WAAW,GAAG;IAAE,WAAW,EAAE,GAAG,CAAA;CAAE,CAAA;AAE9C,qBAAa,aAAc,YAAW,eAAe,CAAC,WAAW,CAAC;;gBAGlD,MAAM,EAAE,YAAY;IAC1B,OAAO,CAAC,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;CA0BjH"}
@@ -1,6 +1,6 @@
1
1
  import { Progress } from "@opendaw/lib-std";
2
- import { AcceptedSource, FFmpegWorker } from "./FFmpegWorker";
3
- import { FFmpegConverter } from "./FFmpegConverter";
2
+ import type { AcceptedSource, FFmpegWorker } from "./FFmpegWorker";
3
+ import type { FFmpegConverter } from "./FFmpegConverter";
4
4
  export type Mp3Options = {
5
5
  bitrate?: string;
6
6
  quality?: number;
@@ -1 +1 @@
1
- {"version":3,"file":"mp3.d.ts","sourceRoot":"","sources":["../../src/ffmpeg/mp3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAC,cAAc,EAAE,YAAY,EAAC,MAAM,gBAAgB,CAAA;AAC3D,OAAO,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAA;AAEjD,MAAM,MAAM,UAAU,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAE/D,qBAAa,YAAa,YAAW,eAAe,CAAC,UAAU,CAAC;;gBAGhD,MAAM,EAAE,YAAY;IAE1B,OAAO,CAAC,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAC1B,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,WAAW,CAAC;CA8BhE"}
1
+ {"version":3,"file":"mp3.d.ts","sourceRoot":"","sources":["../../src/ffmpeg/mp3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,kBAAkB,CAAA;AACzC,OAAO,KAAK,EAAC,cAAc,EAAE,YAAY,EAAC,MAAM,gBAAgB,CAAA;AAChE,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,mBAAmB,CAAA;AAEtD,MAAM,MAAM,UAAU,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAA;AAE/D,qBAAa,YAAa,YAAW,eAAe,CAAC,UAAU,CAAC;;gBAGhD,MAAM,EAAE,YAAY;IAE1B,OAAO,CAAC,MAAM,EAAE,cAAc,EACtB,QAAQ,EAAE,QAAQ,CAAC,OAAO,EAC1B,OAAO,GAAE,UAAe,GAAG,OAAO,CAAC,WAAW,CAAC;CA8BhE"}
@@ -1 +1 @@
1
- {"version":3,"file":"ProjectUtils.d.ts","sourceRoot":"","sources":["../../src/project/ProjectUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAA;AACrC,OAAO,EAAC,YAAY,EAAgB,MAAM,0BAA0B,CAAA;AACpE,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;AAcjC,OAAO,EAEH,YAAY,EAOf,MAAM,uBAAuB,CAAA;AAI9B,yBAAiB,YAAY,CAAC;IAMnB,MAAM,iBAAiB,GAAI,gBAAgB,aAAa,CAAC,YAAY,CAAC,EAC3C,eAAe,OAAO,EACtB,UAAS;QAAE,UAAU,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAO,KAAG,IAehG,CAAA;IAEM,MAAM,cAAc,GAAI,aAAa,aAAa,CAAC,YAAY,CAAC,EACxC,eAAe,OAAO,EACtB,iBAAgB,IAAU,KAAG,IAkD3D,CAAA;CAmFJ"}
1
+ {"version":3,"file":"ProjectUtils.d.ts","sourceRoot":"","sources":["../../src/project/ProjectUtils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAC,MAAM,kBAAkB,CAAA;AACrC,OAAO,EAAC,YAAY,EAAgB,MAAM,0BAA0B,CAAA;AACpE,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAA;AAcjC,OAAO,EAEH,YAAY,EAOf,MAAM,uBAAuB,CAAA;AAI9B,yBAAiB,YAAY,CAAC;IAMnB,MAAM,iBAAiB,GAAI,gBAAgB,aAAa,CAAC,YAAY,CAAC,EAC3C,eAAe,OAAO,EACtB,UAAS;QAAE,UAAU,CAAC,EAAE,OAAO,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAA;KAAO,KAAG,IAehG,CAAA;IAEM,MAAM,cAAc,GAAI,aAAa,aAAa,CAAC,YAAY,CAAC,EACxC,eAAe,OAAO,EACtB,iBAAgB,IAAU,KAAG,IAkD3D,CAAA;CAsFJ"}
@@ -11,7 +11,7 @@ export var ProjectUtils;
11
11
  assert(Arrays.satisfy(audioUnitBoxes, isSameGraph), "AudioUnits must share the same BoxGraph");
12
12
  // TODO Implement include options.
13
13
  assert(!options.includeAux && !options.includeBus, "Options are not yet implemented");
14
- const { boxGraph, masterBusBox, masterAudioUnit, rootBox } = targetProject;
14
+ const { boxGraph, masterBusBox, rootBox } = targetProject;
15
15
  const dependencies = audioUnitBoxes
16
16
  .flatMap(box => Array.from(box.graph.dependenciesOf(box, { alwaysFollowMandatory: true }).boxes))
17
17
  .filter(box => box.name !== SelectionBox.ClassName && box.name !== AuxSendBox.ClassName);
@@ -125,6 +125,7 @@ export var ProjectUtils;
125
125
  audioUnitBoxes
126
126
  .toSorted(compareIndex)
127
127
  .forEach((box) => {
128
+ // That is a bit slow, but we are probably not dealing with too many audioUnits at this point.
128
129
  const boxes = IndexedBox.collectIndexedBoxes(rootBox.audioUnits, AudioUnitBox);
129
130
  const order = AudioUnitOrdering[box.type.getValue()];
130
131
  let index = 0 | 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opendaw/studio-core",
3
- "version": "0.0.50",
3
+ "version": "0.0.52",
4
4
  "license": "LGPL-3.0-or-later",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -12,6 +12,10 @@
12
12
  "types": "./dist/index.d.ts",
13
13
  "default": "./dist/index.js"
14
14
  },
15
+ "./FFmpegWorker": {
16
+ "types": "./dist/ffmpeg/FFmpegWorker.d.ts",
17
+ "default": "./dist/ffmpeg/FFmpegWorker.js"
18
+ },
15
19
  "./workers-main.js": "./dist/workers-main.js",
16
20
  "./processors.js": "./dist/processors.js"
17
21
  },
@@ -26,16 +30,16 @@
26
30
  "test": "vitest run --config vitest.config.ts"
27
31
  },
28
32
  "dependencies": {
29
- "@opendaw/lib-box": "^0.0.41",
30
- "@opendaw/lib-dawproject": "^0.0.27",
31
- "@opendaw/lib-dom": "^0.0.41",
32
- "@opendaw/lib-dsp": "^0.0.41",
33
- "@opendaw/lib-fusion": "^0.0.41",
34
- "@opendaw/lib-runtime": "^0.0.41",
35
- "@opendaw/lib-std": "^0.0.41",
36
- "@opendaw/studio-adapters": "^0.0.42",
37
- "@opendaw/studio-boxes": "^0.0.41",
38
- "@opendaw/studio-enums": "^0.0.32",
33
+ "@opendaw/lib-box": "^0.0.43",
34
+ "@opendaw/lib-dawproject": "^0.0.29",
35
+ "@opendaw/lib-dom": "^0.0.43",
36
+ "@opendaw/lib-dsp": "^0.0.43",
37
+ "@opendaw/lib-fusion": "^0.0.43",
38
+ "@opendaw/lib-runtime": "^0.0.43",
39
+ "@opendaw/lib-std": "^0.0.43",
40
+ "@opendaw/studio-adapters": "^0.0.44",
41
+ "@opendaw/studio-boxes": "^0.0.43",
42
+ "@opendaw/studio-enums": "^0.0.34",
39
43
  "dropbox": "^10.34.0",
40
44
  "y-websocket": "^1.4.5",
41
45
  "yjs": "^13.6.27",
@@ -49,10 +53,10 @@
49
53
  "@ffmpeg/ffmpeg": "^0.12.15",
50
54
  "@ffmpeg/util": "^0.12.2",
51
55
  "@opendaw/eslint-config": "^0.0.20",
52
- "@opendaw/studio-core-processors": "^0.0.42",
53
- "@opendaw/studio-core-workers": "^0.0.37",
54
- "@opendaw/studio-forge-boxes": "^0.0.41",
56
+ "@opendaw/studio-core-processors": "^0.0.44",
57
+ "@opendaw/studio-core-workers": "^0.0.39",
58
+ "@opendaw/studio-forge-boxes": "^0.0.43",
55
59
  "@opendaw/typescript-config": "^0.0.20"
56
60
  },
57
- "gitHead": "cc371b41cc7a5a0d3ef9c13f29df42c893374a53"
61
+ "gitHead": "6febc5987c5f8519151f6797818ead2d0e1fb141"
58
62
  }