anthumchris / opus-stream-decoder

Instantly decode Ogg Opus audio streams in chunks with JavaScript & WebAssembly (Wasm)
126 stars 21 forks source link

NodeJS Test Outputs Wrong Message #2

Closed anthumchris closed 5 years ago

anthumchris commented 5 years ago

"File could not be decoded" is incorrectly logged by the nodejs test in newer versions even though the test succeeds. Fails in NodeJS 10+, Succeeds in Node 8.9.1.

$ rm -rf tmp
$ make test-wasm-module 
Downloading decode test file https://fetch-stream-audio.anthum.com/audio/opus/decode-test-64kbps.opus...
tmp/decode-test-64kbps.opus   100%[===============================================>]  49.90K  --.-KB/s    in 0.1s    
Testing 64 kbps Opus file...
File could not be decoded.
OggOpusFile discovered with 16384 bytes

$ ll tmp
    170 .
    374 ..
  51101 decode-test-64kbps.opus
1191640 decoded-left.pcm
1191640 decoded-right.pcm