I'm writing a retro game engine and I'm testing out sound assets that are signed 16-bit PCM with a sample rate of 11025Hz. The audio plays fine when built for desktop, but when built with emscripten for web the playback is way too fast. I resampled my test audio to 44100Hz and it then played fine.
I'm writing a retro game engine and I'm testing out sound assets that are signed 16-bit PCM with a sample rate of 11025Hz. The audio plays fine when built for desktop, but when built with emscripten for web the playback is way too fast. I resampled my test audio to 44100Hz and it then played fine.
I'm just opening a default audio device:
And then handing it PCM data:
I'd appreciate any advice/help.