Skip to content

Commit a84da82

Browse files
authored
fix: dyld missing symbol called on arm arch (#150)
1 parent bb37897 commit a84da82

File tree

4 files changed

+16
-1
lines changed

4 files changed

+16
-1
lines changed

deps/binding.gyp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,7 @@
211211
"opus/celt/arm/armcpu.c",
212212
"opus/celt/arm/celt_neon_intr.c",
213213
"opus/celt/arm/pitch_neon_intr.c",
214+
"opus/silk/arm/LPC_inv_pred_gain_neon_intr.c",
214215
],
215216
"include_dirs": [
216217
"opus",

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"install": "node-pre-gyp install --fallback-to-build",
1111
"build": "node-pre-gyp install build package",
1212
"lint": "prettier --check . && eslint lib --format=pretty",
13-
"lint:fix": "prettier --write . && eslint lib --fix --format=pretty"
13+
"lint:fix": "prettier --write . && eslint lib --fix --format=pretty",
14+
"test": "node tests/test.js"
1415
},
1516
"keywords": [
1617
"native",

tests/frame.opus

960 Bytes
Binary file not shown.

tests/test.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
const assert = require('node:assert');
2+
const fs = require('node:fs');
3+
const path = require('node:path');
4+
const { OpusEncoder } = require('../lib/index.js');
5+
6+
const opus = new OpusEncoder(16_000, 1);
7+
8+
const frame = fs.readFileSync(path.join(__dirname, 'frame.opus'));
9+
10+
const decoded = opus.decode(frame);
11+
12+
assert(decoded.length === 640, 'Decoded frame length is not 640');
13+
console.log('Passed');

0 commit comments

Comments
 (0)