discordjs / opus

Native opus bindings for node
MIT License
188 stars 53 forks source link

dyld[53422]: missing symbol called on `decode`. #142

Closed kevinvdburgt closed 1 year ago

kevinvdburgt commented 1 year ago

Please describe the problem you are having in as much detail as possible:

When running the example below, the response of the opusEncode.decode results in:

dyld[53422]: missing symbol called

Include a reproducible code sample here, if possible:

    const opusEncoder = new OpusEncoder(24000, 1);

    const buffer = Buffer.from(
      '6801d5d27eca5a47fe2178960578db08005a1825a94e36157732dba57877684d3be3f200bf22a762064c83394dbec25de57a63a56617cb1733bc40069e7aa902ee0ac77dae09ac033484fdb01514ce',
      'hex',
    );

    const payload = opusEncoder.decode(buffer);

    console.log(payload);

Further details:

maxckelly commented 1 year ago

+1 @kevinvdburgt did you find a solution for this?

kevinvdburgt commented 1 year ago

@maxckelly I haven't found a solution to this yet.

For the part of my project where I do need this package I spin up and old linux laptop with an x64 architecture.

maxckelly commented 1 year ago

For anyone experiencing this I followed this steps and it now works. https://gist.github.com/adrienjoly/e29a6e73fb7e701eefd80ff9bde9abeb

kevinvdburgt commented 1 year ago

I'm not sure how this is invalid, the readme says that it supports the arm version of macos. The given workaround from @maxckelly running in an emulation x86 layer (rosetta).

JacobLinCool commented 5 months ago

Hi @kevinvdburgt, this PR (#150) should fix the problem on ARM macOS without x86 emulation.