@audio/decode-aac 1.2.0 → 1.3.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/src/aac.wasm.cjs +0 -0
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-aac) by format
|
|
3
|
+
// name. Format detection is magic-byte (audio-type) — no test() needed here.
|
|
4
|
+
|
|
5
|
+
import decodeFn from './decode-aac.js'
|
|
6
|
+
|
|
7
|
+
export const aac = {
|
|
8
|
+
codec: 'aac',
|
|
9
|
+
decode: (bytes) => decodeFn(bytes),
|
|
10
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@audio/decode-aac",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Decode AAC/M4A (FAAD2 WASM) and ALAC/Apple Lossless (pure JS) to PCM samples",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "decode-aac.js",
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./decode-aac.js",
|
|
10
10
|
"./meta": "./meta.js",
|
|
11
|
+
"./audio": "./audio.js",
|
|
11
12
|
"./package.json": "./package.json"
|
|
12
13
|
},
|
|
13
14
|
"publishConfig": {
|
|
@@ -24,7 +25,8 @@
|
|
|
24
25
|
"meta.js",
|
|
25
26
|
"decode-aac.d.ts",
|
|
26
27
|
"src/aac.wasm.cjs",
|
|
27
|
-
"LICENSE"
|
|
28
|
+
"LICENSE",
|
|
29
|
+
"audio.js"
|
|
28
30
|
],
|
|
29
31
|
"keywords": [
|
|
30
32
|
"aac",
|
|
@@ -49,5 +51,6 @@
|
|
|
49
51
|
},
|
|
50
52
|
"engines": {
|
|
51
53
|
"node": ">=16"
|
|
52
|
-
}
|
|
54
|
+
},
|
|
55
|
+
"audio": "./audio.js"
|
|
53
56
|
}
|
package/src/aac.wasm.cjs
CHANGED
|
Binary file
|