@audio/decode-aiff 1.1.4 → 1.2.0
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/audio.js +10 -0
- package/package.json +6 -3
package/audio.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// audio.js manifest — codec atom, decode half: whole-buffer bytes → { channelData,
|
|
2
|
+
// sampleRate }. Hosts merge with the encode half (@audio/encode-aiff) by format
|
|
3
|
+
// name. Format detection is magic-byte (audio-type) — no test() needed here.
|
|
4
|
+
|
|
5
|
+
import decodeFn from './decode-aiff.js'
|
|
6
|
+
|
|
7
|
+
export const aiff = {
|
|
8
|
+
codec: 'aiff',
|
|
9
|
+
decode: (bytes) => decodeFn(bytes),
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@audio/decode-aiff",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Decode AIFF/AIFF-C audio to PCM samples",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "decode-aiff.js",
|
|
7
7
|
"types": "decode-aiff.d.ts",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./decode-aiff.js",
|
|
10
|
+
"./audio": "./audio.js",
|
|
10
11
|
"./package.json": "./package.json"
|
|
11
12
|
},
|
|
12
13
|
"files": [
|
|
13
14
|
"decode-aiff.js",
|
|
14
15
|
"decode-aiff.d.ts",
|
|
15
|
-
"LICENSE"
|
|
16
|
+
"LICENSE",
|
|
17
|
+
"audio.js"
|
|
16
18
|
],
|
|
17
19
|
"keywords": [
|
|
18
20
|
"aiff",
|
|
@@ -38,5 +40,6 @@
|
|
|
38
40
|
"bugs": "https://github.com/audiojs/decode-aiff/issues",
|
|
39
41
|
"scripts": {
|
|
40
42
|
"test": "node test.js"
|
|
41
|
-
}
|
|
43
|
+
},
|
|
44
|
+
"audio": "./audio.js"
|
|
42
45
|
}
|