MacBook Pro M2: dyld[7797]: missing symbol called
- Dominant language
- C++
- Stars
- 253
- Forks
- 74
- PR merge metrics
- No merged PRs in 30d
Description
### Issue description
1. Prepare some PCM data. In my case it's 16kHz mono, 16bits.
2. Encode it with 960 bytes per frame.
3. Watch the crash
After digging into the missing symbols, I managed to fix that by adding `"opus/silk/arm/NSQ_neon.c"` to the `"target_arch==\"arm64\""` condition in `@discordjs/opus/deps/binding.gyp` .
### Code sample
```TypeScript
import { OpusEncoder } from '@discordjs/opus';
const buffer = ...;
const bytesPerFrame = 960;
const frame = buffer.subarray(0, bytesPerFrame);
const encoder = new OpusEncoder(16000, 1);
const opus = encoder.encode(frame);
```
### Versions
- @discordjs/opus: 0.9.0
- nodejs: v22.11.0
- typescript: 5.6.3
- OS: macOS 14.6.1 (23G93)
- Chip: Apple M2
### Issue priority
Medium (should be fixed soon)
Contributor guide
Assessment
This issue has not been assessed yet.