File tree Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Expand file tree Collapse file tree 4 files changed +16
-1
lines changed Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff line change 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' ) ;
You can’t perform that action at this time.
0 commit comments