timed-audio-buffer-source-node-audio-worklet 2.1.16 → 2.1.17
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/LICENSE +1 -1
- package/build/es5/bundle.js +8 -8
- package/package.json +18 -18
package/LICENSE
CHANGED
package/build/es5/bundle.js
CHANGED
|
@@ -108,23 +108,23 @@
|
|
|
108
108
|
var options = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : {};
|
|
109
109
|
var _a, _b;
|
|
110
110
|
var _options$buffer = options.buffer,
|
|
111
|
-
buffer = _options$buffer ===
|
|
111
|
+
buffer = _options$buffer === undefined ? null : _options$buffer;
|
|
112
112
|
if (buffer instanceof AudioBuffer && buffer.sampleRate !== context.sampleRate) {
|
|
113
113
|
throw new TypeError('The AudioBuffer must have the same sampleRate as the AudioContext.');
|
|
114
114
|
}
|
|
115
115
|
var _options$timingObject = options.timingObject,
|
|
116
|
-
timingObject = _options$timingObject ===
|
|
117
|
-
var _ref2 = (_a = timingObject === null || timingObject ===
|
|
116
|
+
timingObject = _options$timingObject === undefined ? null : _options$timingObject;
|
|
117
|
+
var _ref2 = (_a = timingObject === null || timingObject === undefined ? undefined : timingObject.query()) !== null && _a !== undefined ? _a : {},
|
|
118
118
|
_ref2$position = _ref2.position,
|
|
119
|
-
position = _ref2$position ===
|
|
119
|
+
position = _ref2$position === undefined ? 0 : _ref2$position,
|
|
120
120
|
_ref2$timestamp = _ref2.timestamp,
|
|
121
|
-
timestamp = _ref2$timestamp ===
|
|
121
|
+
timestamp = _ref2$timestamp === undefined ? 0 : _ref2$timestamp,
|
|
122
122
|
_ref2$velocity = _ref2.velocity,
|
|
123
|
-
velocity = _ref2$velocity ===
|
|
123
|
+
velocity = _ref2$velocity === undefined ? 0 : _ref2$velocity;
|
|
124
124
|
var audioWorkletNode = new audioWorkletNodeConstructor(context, 'timed-audio-buffer-source-node-audio-worklet-processor', {
|
|
125
125
|
numberOfInputs: 1,
|
|
126
126
|
numberOfOutputs: 1,
|
|
127
|
-
outputChannelCount: [(_b = buffer === null || buffer ===
|
|
127
|
+
outputChannelCount: [(_b = buffer === null || buffer === undefined ? undefined : buffer.numberOfChannels) !== null && _b !== undefined ? _b : 1],
|
|
128
128
|
processorOptions: {
|
|
129
129
|
buffer: buffer instanceof AudioBuffer ? Array.from({
|
|
130
130
|
length: buffer.numberOfChannels
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
return timingObject;
|
|
149
149
|
},
|
|
150
150
|
set: function set(value) {
|
|
151
|
-
removeListener === null || removeListener ===
|
|
151
|
+
removeListener === null || removeListener === undefined ? undefined : removeListener();
|
|
152
152
|
removeListener = null;
|
|
153
153
|
if (value === null) {
|
|
154
154
|
timingObject = value;
|
package/package.json
CHANGED
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@babel/runtime": "^7.26.0",
|
|
13
13
|
"standardized-audio-context": "^25.3.77",
|
|
14
|
-
"timed-audio-buffer-source-node-audio-worklet-processor": "^2.1.
|
|
15
|
-
"timing-object": "^3.1.
|
|
14
|
+
"timed-audio-buffer-source-node-audio-worklet-processor": "^2.1.14",
|
|
15
|
+
"timing-object": "^3.1.86",
|
|
16
16
|
"tslib": "^2.8.1"
|
|
17
17
|
},
|
|
18
18
|
"description": "This module provides a loader for the TimedAudioBufferSourceNodeAudioWorkletProcessor and the corresponding TimedAudioBufferSourceNodeAudioWorkletNode.",
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
"@babel/plugin-external-helpers": "^7.25.9",
|
|
22
22
|
"@babel/plugin-transform-runtime": "^7.25.9",
|
|
23
23
|
"@babel/preset-env": "^7.26.0",
|
|
24
|
-
"@commitlint/cli": "^19.
|
|
25
|
-
"@commitlint/config-angular": "^19.
|
|
24
|
+
"@commitlint/cli": "^19.6.1",
|
|
25
|
+
"@commitlint/config-angular": "^19.7.0",
|
|
26
26
|
"@rollup/plugin-babel": "^6.0.4",
|
|
27
|
-
"@rollup/plugin-replace": "^6.0.
|
|
27
|
+
"@rollup/plugin-replace": "^6.0.2",
|
|
28
28
|
"babel-loader": "^9.2.1",
|
|
29
29
|
"chai": "^4.3.10",
|
|
30
30
|
"commitizen": "^4.3.1",
|
|
31
31
|
"cz-conventional-changelog": "^3.3.0",
|
|
32
32
|
"eslint": "^8.57.0",
|
|
33
|
-
"eslint-config-holy-grail": "^60.0.
|
|
33
|
+
"eslint-config-holy-grail": "^60.0.17",
|
|
34
34
|
"grunt": "^1.6.1",
|
|
35
35
|
"grunt-cli": "^1.5.0",
|
|
36
36
|
"grunt-sh": "^0.2.1",
|
|
37
|
-
"husky": "^9.1.
|
|
37
|
+
"husky": "^9.1.7",
|
|
38
38
|
"karma": "^6.4.4",
|
|
39
39
|
"karma-chrome-launcher": "^3.2.0",
|
|
40
40
|
"karma-firefox-launcher": "^2.1.3",
|
|
@@ -43,23 +43,23 @@
|
|
|
43
43
|
"karma-sinon-chai": "^2.0.2",
|
|
44
44
|
"karma-webkit-launcher": "^2.6.0",
|
|
45
45
|
"karma-webpack": "^5.0.1",
|
|
46
|
-
"lint-staged": "^15.
|
|
46
|
+
"lint-staged": "^15.3.0",
|
|
47
47
|
"load-grunt-config": "^4.0.1",
|
|
48
|
-
"memfs": "^4.
|
|
48
|
+
"memfs": "^4.15.3",
|
|
49
49
|
"mocha": "^10.8.2",
|
|
50
|
-
"prettier": "^3.
|
|
50
|
+
"prettier": "^3.4.2",
|
|
51
51
|
"rimraf": "^6.0.1",
|
|
52
|
-
"rollup": "^4.
|
|
52
|
+
"rollup": "^4.30.0",
|
|
53
53
|
"sinon": "^17.0.1",
|
|
54
54
|
"sinon-chai": "^3.7.0",
|
|
55
|
-
"terser-webpack-plugin": "^5.3.
|
|
55
|
+
"terser-webpack-plugin": "^5.3.11",
|
|
56
56
|
"ts-loader": "^9.5.1",
|
|
57
|
-
"tsconfig-holy-grail": "^15.0.
|
|
57
|
+
"tsconfig-holy-grail": "^15.0.2",
|
|
58
58
|
"tslint": "^6.1.3",
|
|
59
|
-
"tslint-config-holy-grail": "^56.0.
|
|
60
|
-
"typescript": "^5.
|
|
61
|
-
"webpack": "^5.
|
|
62
|
-
"webpack-cli": "^
|
|
59
|
+
"tslint-config-holy-grail": "^56.0.6",
|
|
60
|
+
"typescript": "^5.7.2",
|
|
61
|
+
"webpack": "^5.97.1",
|
|
62
|
+
"webpack-cli": "^6.0.1"
|
|
63
63
|
},
|
|
64
64
|
"files": [
|
|
65
65
|
"build/es2019/",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"test": "grunt lint && grunt test"
|
|
87
87
|
},
|
|
88
88
|
"types": "build/es2019/module.d.ts",
|
|
89
|
-
"version": "2.1.
|
|
89
|
+
"version": "2.1.17"
|
|
90
90
|
}
|