mirror of
https://github.com/yawut/SDL.git
synced 2026-07-15 00:01:04 -05:00
Emscripten: make CloseAudio actually close audio
cf. https://bugzilla.libsdl.org/show_bug.cgi?id=4176
This commit is contained in:
parent
dbf9ff8647
commit
a2560fd73c
|
|
@ -246,6 +246,7 @@ EMSCRIPTENAUDIO_OpenDevice(_THIS, void *handle, const char *devname, int iscaptu
|
|||
}
|
||||
SDL_zerop(this->hidden);
|
||||
#endif
|
||||
this->hidden = (struct SDL_PrivateAudioData *)0x1;
|
||||
|
||||
/* limit to native freq */
|
||||
this->spec.freq = EM_ASM_INT_V({ return SDL2.audioContext.sampleRate; });
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user