Decoding ogg/opus on iOS results in 1 sec shorter files
sonovice opened this issue · 2 comments
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).
Which version of iOS is running on your iPhone? Can you try to reproduce this on the demo page?
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.