@opendaw/studio-core 0.0.26 → 0.0.28
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/AudioOfflineRenderer.d.ts.map +1 -1
- package/dist/AudioOfflineRenderer.js +7 -3
- package/dist/Engine.d.ts +4 -4
- package/dist/Engine.d.ts.map +1 -1
- package/dist/EngineFacade.d.ts +4 -4
- package/dist/EngineFacade.d.ts.map +1 -1
- package/dist/EngineWorklet.d.ts +4 -4
- package/dist/EngineWorklet.d.ts.map +1 -1
- package/dist/RecordingWorklet.d.ts +1 -1
- package/dist/RecordingWorklet.d.ts.map +1 -1
- package/dist/RecordingWorklet.js +1 -1
- package/dist/WavFile.d.ts +10 -0
- package/dist/WavFile.d.ts.map +1 -0
- package/dist/WavFile.js +94 -0
- package/dist/WorkerAgents.d.ts +1 -1
- package/dist/WorkerAgents.d.ts.map +1 -1
- package/dist/WorkerAgents.js +15 -3
- package/dist/capture/Capture.d.ts +1 -1
- package/dist/capture/Capture.d.ts.map +1 -1
- package/dist/capture/CaptureAudio.js +1 -1
- package/dist/capture/CaptureDevices.d.ts +1 -1
- package/dist/capture/CaptureDevices.d.ts.map +1 -1
- package/dist/capture/CaptureMidi.js +1 -1
- package/dist/clouds/CloudAuthManager.d.ts +10 -0
- package/dist/clouds/CloudAuthManager.d.ts.map +1 -0
- package/dist/clouds/CloudAuthManager.js +195 -0
- package/dist/clouds/CloudBackup.d.ts +8 -0
- package/dist/clouds/CloudBackup.d.ts.map +1 -0
- package/dist/clouds/CloudBackup.js +55 -0
- package/dist/clouds/CloudBackupProjects.d.ts +10 -0
- package/dist/clouds/CloudBackupProjects.d.ts.map +1 -0
- package/dist/clouds/CloudBackupProjects.js +167 -0
- package/dist/clouds/CloudBackupSamples.d.ts +13 -0
- package/dist/clouds/CloudBackupSamples.d.ts.map +1 -0
- package/dist/clouds/CloudBackupSamples.js +129 -0
- package/dist/clouds/CloudHandler.d.ts +9 -0
- package/dist/clouds/CloudHandler.d.ts.map +1 -0
- package/dist/clouds/CloudHandler.js +1 -0
- package/dist/clouds/CloudService.d.ts +2 -0
- package/dist/clouds/CloudService.d.ts.map +1 -0
- package/dist/clouds/CloudService.js +1 -0
- package/dist/clouds/DropboxHandler.d.ts +12 -0
- package/dist/clouds/DropboxHandler.d.ts.map +1 -0
- package/dist/clouds/DropboxHandler.js +83 -0
- package/dist/clouds/GoogleDriveHandler.d.ts +12 -0
- package/dist/clouds/GoogleDriveHandler.d.ts.map +1 -0
- package/dist/clouds/GoogleDriveHandler.js +256 -0
- package/dist/dawproject/DawProject.d.ts +2 -2
- package/dist/dawproject/DawProject.d.ts.map +1 -1
- package/dist/dawproject/DawProjectExporter.js +2 -2
- package/dist/dawproject/DawProjectImport.d.ts +1 -1
- package/dist/dawproject/DawProjectImport.d.ts.map +1 -1
- package/dist/dawproject/DeviceIO.d.ts +1 -1
- package/dist/dawproject/DeviceIO.d.ts.map +1 -1
- package/dist/dawproject/DeviceIO.js +2 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -1
- package/dist/processors.js +3 -3
- package/dist/processors.js.map +4 -4
- package/dist/project/Project.d.ts +1 -7
- package/dist/project/Project.d.ts.map +1 -1
- package/dist/project/Project.js +7 -12
- package/dist/project/ProjectApi.d.ts +9 -1
- package/dist/project/ProjectApi.d.ts.map +1 -1
- package/dist/project/ProjectApi.js +67 -3
- package/dist/project/ProjectBundle.d.ts +1 -1
- package/dist/project/ProjectBundle.d.ts.map +1 -1
- package/dist/project/ProjectBundle.js +1 -1
- package/dist/project/ProjectPaths.d.ts +4 -4
- package/dist/project/ProjectPaths.d.ts.map +1 -1
- package/dist/project/ProjectProfile.d.ts +2 -2
- package/dist/project/ProjectProfile.d.ts.map +1 -1
- package/dist/project/ProjectSignals.d.ts +6 -0
- package/dist/project/ProjectSignals.d.ts.map +1 -0
- package/dist/project/ProjectSignals.js +4 -0
- package/dist/project/ProjectStorage.d.ts +23 -0
- package/dist/project/ProjectStorage.d.ts.map +1 -0
- package/dist/project/ProjectStorage.js +59 -0
- package/dist/samples/MainThreadSampleLoader.d.ts +2 -2
- package/dist/samples/MainThreadSampleLoader.d.ts.map +1 -1
- package/dist/samples/MainThreadSampleLoader.js +2 -3
- package/dist/samples/MainThreadSampleManager.d.ts +4 -4
- package/dist/samples/MainThreadSampleManager.d.ts.map +1 -1
- package/dist/samples/OpenSampleAPI.d.ts +4 -2
- package/dist/samples/OpenSampleAPI.d.ts.map +1 -1
- package/dist/samples/OpenSampleAPI.js +19 -2
- package/dist/samples/SampleAPI.d.ts +2 -2
- package/dist/samples/SampleAPI.d.ts.map +1 -1
- package/dist/samples/SampleImporter.d.ts +1 -1
- package/dist/samples/SampleImporter.d.ts.map +1 -1
- package/dist/samples/SampleProvider.d.ts +1 -1
- package/dist/samples/SampleProvider.d.ts.map +1 -1
- package/dist/samples/SampleStorage.d.ts +7 -5
- package/dist/samples/SampleStorage.d.ts.map +1 -1
- package/dist/samples/SampleStorage.js +31 -17
- package/dist/workers.js +2 -2
- package/dist/workers.js.map +4 -4
- package/package.json +14 -14
- package/dist/Wav.d.ts +0 -6
- package/dist/Wav.d.ts.map +0 -1
- package/dist/Wav.js +0 -46
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@opendaw/studio-core",
|
3
|
-
"version": "0.0.
|
3
|
+
"version": "0.0.28",
|
4
4
|
"license": "LGPL-3.0-or-later",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -26,23 +26,23 @@
|
|
26
26
|
"test": "vitest run --config vitest.config.ts"
|
27
27
|
},
|
28
28
|
"dependencies": {
|
29
|
-
"@opendaw/lib-box": "^0.0.
|
30
|
-
"@opendaw/lib-dawproject": "^0.0.
|
31
|
-
"@opendaw/lib-dom": "^0.0.
|
32
|
-
"@opendaw/lib-dsp": "^0.0.
|
33
|
-
"@opendaw/lib-fusion": "^0.0.
|
34
|
-
"@opendaw/lib-runtime": "^0.0.
|
35
|
-
"@opendaw/lib-std": "^0.0.
|
36
|
-
"@opendaw/studio-adapters": "^0.0.
|
37
|
-
"@opendaw/studio-boxes": "^0.0.
|
29
|
+
"@opendaw/lib-box": "^0.0.26",
|
30
|
+
"@opendaw/lib-dawproject": "^0.0.12",
|
31
|
+
"@opendaw/lib-dom": "^0.0.26",
|
32
|
+
"@opendaw/lib-dsp": "^0.0.26",
|
33
|
+
"@opendaw/lib-fusion": "^0.0.26",
|
34
|
+
"@opendaw/lib-runtime": "^0.0.26",
|
35
|
+
"@opendaw/lib-std": "^0.0.26",
|
36
|
+
"@opendaw/studio-adapters": "^0.0.26",
|
37
|
+
"@opendaw/studio-boxes": "^0.0.26",
|
38
38
|
"@opendaw/studio-enums": "^0.0.20"
|
39
39
|
},
|
40
40
|
"devDependencies": {
|
41
41
|
"@opendaw/eslint-config": "^0.0.18",
|
42
|
-
"@opendaw/studio-core-processors": "^0.0.
|
43
|
-
"@opendaw/studio-core-workers": "^0.0.
|
44
|
-
"@opendaw/studio-forge-boxes": "^0.0.
|
42
|
+
"@opendaw/studio-core-processors": "^0.0.26",
|
43
|
+
"@opendaw/studio-core-workers": "^0.0.20",
|
44
|
+
"@opendaw/studio-forge-boxes": "^0.0.26",
|
45
45
|
"@opendaw/typescript-config": "^0.0.19"
|
46
46
|
},
|
47
|
-
"gitHead": "
|
47
|
+
"gitHead": "2af69501aa314dd015bff9aaf61608dc3fc2f775"
|
48
48
|
}
|
package/dist/Wav.d.ts
DELETED
package/dist/Wav.d.ts.map
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"Wav.d.ts","sourceRoot":"","sources":["../src/Wav.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,cAAc,GAAI,OAAO;IAClC,QAAQ,EAAE,aAAa,CAAC,YAAY,CAAC,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAA;CACpB,GAAG,WAAW,KAAG,WA2CjB,CAAA"}
|
package/dist/Wav.js
DELETED
@@ -1,46 +0,0 @@
|
|
1
|
-
import { Arrays } from "@opendaw/lib-std";
|
2
|
-
export const encodeWavFloat = (audio) => {
|
3
|
-
const MAGIC_RIFF = 0x46464952;
|
4
|
-
const MAGIC_WAVE = 0x45564157;
|
5
|
-
const MAGIC_FMT = 0x20746d66;
|
6
|
-
const MAGIC_DATA = 0x61746164;
|
7
|
-
const bytesPerChannel = Float32Array.BYTES_PER_ELEMENT;
|
8
|
-
const sampleRate = audio.sampleRate;
|
9
|
-
let numFrames;
|
10
|
-
let numberOfChannels;
|
11
|
-
let channels;
|
12
|
-
if (audio instanceof AudioBuffer) {
|
13
|
-
channels = Arrays.create(index => audio.getChannelData(index), audio.numberOfChannels);
|
14
|
-
numFrames = audio.length;
|
15
|
-
numberOfChannels = audio.numberOfChannels;
|
16
|
-
}
|
17
|
-
else {
|
18
|
-
channels = audio.channels;
|
19
|
-
numFrames = audio.numFrames;
|
20
|
-
numberOfChannels = audio.channels.length;
|
21
|
-
}
|
22
|
-
const size = 44 + numFrames * numberOfChannels * bytesPerChannel;
|
23
|
-
const buf = new ArrayBuffer(size);
|
24
|
-
const view = new DataView(buf);
|
25
|
-
view.setUint32(0, MAGIC_RIFF, true);
|
26
|
-
view.setUint32(4, size - 8, true);
|
27
|
-
view.setUint32(8, MAGIC_WAVE, true);
|
28
|
-
view.setUint32(12, MAGIC_FMT, true);
|
29
|
-
view.setUint32(16, 16, true); // chunk length
|
30
|
-
view.setUint16(20, 3, true); // compression
|
31
|
-
view.setUint16(22, numberOfChannels, true);
|
32
|
-
view.setUint32(24, sampleRate, true);
|
33
|
-
view.setUint32(28, sampleRate * numberOfChannels * bytesPerChannel, true);
|
34
|
-
view.setUint16(32, numberOfChannels * bytesPerChannel, true);
|
35
|
-
view.setUint16(34, 8 * bytesPerChannel, true);
|
36
|
-
view.setUint32(36, MAGIC_DATA, true);
|
37
|
-
view.setUint32(40, numberOfChannels * numFrames * bytesPerChannel, true);
|
38
|
-
let w = 44;
|
39
|
-
for (let i = 0; i < numFrames; ++i) {
|
40
|
-
for (let j = 0; j < numberOfChannels; ++j) {
|
41
|
-
view.setFloat32(w, channels[j][i], true);
|
42
|
-
w += bytesPerChannel;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
return view.buffer;
|
46
|
-
};
|