mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-07-31 04:28:56 +00:00
emscripten: add main thread proxy for getting audio frequency
the rest of the calls were updated in aec86ba but one was missed
This commit is contained in:
committed by
Ryan C. Gordon
parent
50b04b2813
commit
a2e7c76bda
@@ -270,7 +270,7 @@ static int EMSCRIPTENAUDIO_OpenDevice(_THIS, const char *devname)
|
||||
this->hidden = (struct SDL_PrivateAudioData *)0x1;
|
||||
|
||||
/* limit to native freq */
|
||||
this->spec.freq = EM_ASM_INT({
|
||||
this->spec.freq = MAIN_THREAD_EM_ASM_INT({
|
||||
var SDL2 = Module['SDL2'];
|
||||
return SDL2.audioContext.sampleRate;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user