@thi.ng/dsp-io-wav 2.1.4 → 2.1.5
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/CHANGELOG.md +1 -1
- package/README.md +1 -1
- package/package.json +11 -11
- package/write.d.ts +4 -4
- package/write.js +4 -4
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thi.ng/dsp-io-wav",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.5",
|
|
4
4
|
"description": "WAV file format generation",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./index.js",
|
|
@@ -34,19 +34,19 @@
|
|
|
34
34
|
"test": "testament test"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@thi.ng/api": "^8.3.
|
|
38
|
-
"@thi.ng/binary": "^3.
|
|
39
|
-
"@thi.ng/errors": "^2.1.
|
|
40
|
-
"@thi.ng/transducers": "^8.
|
|
41
|
-
"@thi.ng/transducers-binary": "^2.1.
|
|
37
|
+
"@thi.ng/api": "^8.3.4",
|
|
38
|
+
"@thi.ng/binary": "^3.2.0",
|
|
39
|
+
"@thi.ng/errors": "^2.1.4",
|
|
40
|
+
"@thi.ng/transducers": "^8.3.0",
|
|
41
|
+
"@thi.ng/transducers-binary": "^2.1.5"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
|
-
"@microsoft/api-extractor": "^7.19.
|
|
45
|
-
"@thi.ng/testament": "^0.2.
|
|
44
|
+
"@microsoft/api-extractor": "^7.19.4",
|
|
45
|
+
"@thi.ng/testament": "^0.2.4",
|
|
46
46
|
"rimraf": "^3.0.2",
|
|
47
47
|
"tools": "^0.0.1",
|
|
48
|
-
"typedoc": "^0.22.
|
|
49
|
-
"typescript": "^4.
|
|
48
|
+
"typedoc": "^0.22.13",
|
|
49
|
+
"typescript": "^4.6.2"
|
|
50
50
|
},
|
|
51
51
|
"keywords": [
|
|
52
52
|
"8bit",
|
|
@@ -89,5 +89,5 @@
|
|
|
89
89
|
"parent": "@thi.ng/dsp",
|
|
90
90
|
"year": 2020
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "0fc692a3225c068aacafdc4cb6140cf603c67ad8\n"
|
|
93
93
|
}
|
package/write.d.ts
CHANGED
|
@@ -30,16 +30,16 @@ export declare const wavHeader: (spec: WavSpec) => BinStructItem[];
|
|
|
30
30
|
* )
|
|
31
31
|
* ```
|
|
32
32
|
*
|
|
33
|
-
* @param spec
|
|
34
|
-
* @param src
|
|
33
|
+
* @param spec -
|
|
34
|
+
* @param src -
|
|
35
35
|
*/
|
|
36
36
|
export declare const wavByteArray: (spec: WavSpec, src: Iterable<number>) => Uint8Array;
|
|
37
37
|
/**
|
|
38
38
|
* Similar to {@link wavByteArray}, but yields an iterator of the result
|
|
39
39
|
* bytes, not an actual byte array.
|
|
40
40
|
*
|
|
41
|
-
* @param spec
|
|
42
|
-
* @param src
|
|
41
|
+
* @param spec -
|
|
42
|
+
* @param src -
|
|
43
43
|
*/
|
|
44
44
|
export declare const wavBytes: (spec: WavSpec, src: Iterable<number>) => Iterable<number>;
|
|
45
45
|
//# sourceMappingURL=write.d.ts.map
|
package/write.js
CHANGED
|
@@ -63,8 +63,8 @@ export const wavHeader = (spec) => {
|
|
|
63
63
|
* )
|
|
64
64
|
* ```
|
|
65
65
|
*
|
|
66
|
-
* @param spec
|
|
67
|
-
* @param src
|
|
66
|
+
* @param spec -
|
|
67
|
+
* @param src -
|
|
68
68
|
*/
|
|
69
69
|
export const wavByteArray = (spec, src) => {
|
|
70
70
|
const convert = CONVERTERS[spec.bits];
|
|
@@ -75,8 +75,8 @@ export const wavByteArray = (spec, src) => {
|
|
|
75
75
|
* Similar to {@link wavByteArray}, but yields an iterator of the result
|
|
76
76
|
* bytes, not an actual byte array.
|
|
77
77
|
*
|
|
78
|
-
* @param spec
|
|
79
|
-
* @param src
|
|
78
|
+
* @param spec -
|
|
79
|
+
* @param src -
|
|
80
80
|
*/
|
|
81
81
|
export const wavBytes = (spec, src) => {
|
|
82
82
|
const convert = CONVERTERS[spec.bits];
|