eshaz / wasm-audio-decoders

Browser and NodeJS Web Assembly audio decoder libraries that are highly optimized for size and performance.
399 stars 23 forks source link

Decoding ogg/opus on iOS results in 1 sec shorter files #88

Closed sonovice closed 1 year ago

sonovice commented 1 year ago

Using decodeFile() with my opus files I get exactly 48000 samples less decoded on my iPhone 7 compared to every computer browser that I have tested. I have really no clue what could cause this, but it is a reproducible thing that I cannot work around.

Test File: output000.opus.zip

EDIT: It seems as if iOS leaves out the last "non-full" second. So for a 217.358s long file I got 216.9935s on iOS. Similar to the file above (4.9935s vs 3.9935s).

eshaz commented 1 year ago

Which version of iOS is running on your iPhone? Can you try to reproduce this on the demo page?

eshaz commented 1 year ago

I wasn't able to reproduce this on iOS (16.2) and there have been a few changes to ogg-opus-decoder since this issue was opened. Please reopen this issue if it's still happening for you with the latest version. Closing due to inactivity.