We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c8438e commit 61230c6Copy full SHA for 61230c6
music_html5.c
@@ -276,7 +276,7 @@ static int MusicHTML5_Open(const SDL_AudioSpec *spec)
276
if (!(audio instanceof HTMLMediaElement))
277
return;
278
279
- Module["printErr"]("Error " + audio.error.code + "; details: " + audio.error.message);
+ err("Error " + audio.error.code + "; details: " + audio.error.message);
280
281
Module["SDL2Mixer"].resetMusicState(audio);
282
},
@@ -489,9 +489,9 @@ static int MusicHTML5_Play(void *context, int play_count)
489
490
// Older browsers do not return a Promise
491
if (played)
492
- played.catch((e) => Module["printErr"](e));
+ played.catch((e) => err(e));
493
} catch (e) {
494
- Module["printErr"](e);
+ err(e);
495
return -1;
496
}
497
return 0;
0 commit comments