Skip to content

Commit

Permalink
Emscripten: make CloseAudio actually close audio
Browse files Browse the repository at this point in the history
  • Loading branch information
Beuc committed Nov 15, 2018
1 parent 43d47f6 commit 1f6bd95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/audio/emscripten/SDL_emscriptenaudio.c
Expand Up @@ -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; });
Expand Down

0 comments on commit 1f6bd95

Please sign in to comment.