-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: dyld missing symbol called on arm arch (#150)
- Loading branch information
1 parent
bb37897
commit a84da82
Showing
4 changed files
with
16 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const assert = require('node:assert'); | ||
const fs = require('node:fs'); | ||
const path = require('node:path'); | ||
const { OpusEncoder } = require('../lib/index.js'); | ||
|
||
const opus = new OpusEncoder(16_000, 1); | ||
|
||
const frame = fs.readFileSync(path.join(__dirname, 'frame.opus')); | ||
|
||
const decoded = opus.decode(frame); | ||
|
||
assert(decoded.length === 640, 'Decoded frame length is not 640'); | ||
console.log('Passed'); |