Version of emscripten/emsdk:
emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.18 (d5ca9bb)
clang version 16.0.0 (https://github.com/llvm/llvm-project 48129cf0ed5053ed3fdf4f928180635e84892614)
Target: wasm32-unknown-emscripten
Thread model: posix
Situation
Sorry for my bad English skill...
I am porting my rhythm game to web.
ALint sampleBytes;
alGetSourcei(_source, AL_BYTE_OFFSET, &sampleBytes);
I calculated the translation of camera by the value - "sampleBytes" to ensure camera offset is sync to playing time of audio.
But it seems not smoothly in the Emscripten version compare to PC version.
I recorded the two versions of video:
PC on Windows 10
Web by Emscripten
You can see the problem on the notes, it seems stop-and-go in web version.
I tried to modify the library_openal.js
But I still cannot get it right.
Does anyone know what is the cause of the problem?