Skip to content

Commit d42bf59

Browse files
mccakiticculus
authored andcommitted
wasm64 lto fix
1 parent a34d313 commit d42bf59

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/audio/emscripten/SDL_emscriptenaudio.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -155,11 +155,8 @@ static bool EMSCRIPTENAUDIO_OpenDevice(SDL_AudioDevice *device)
155155
Module['SDL3'] = {};
156156
}
157157
var SDL3 = Module['SDL3'];
158-
if (!$0) {
159-
SDL3.audio_playback = {};
160-
} else {
161-
SDL3.audio_recording = {};
162-
}
158+
SDL3.audio_playback = {};
159+
SDL3.audio_recording = {};
163160

164161
if (!SDL3.audioContext) {
165162
if (typeof(AudioContext) !== 'undefined') {

0 commit comments

Comments
 (0)