No audio in ScummVM game

22 views
Skip to first unread message

Alex St. Louis

unread,
Dec 16, 2019, 3:18:15 PM12/16/19
to emscripten-discuss
So using an old build of the Emscripten port of ScummVM (Done by Jukka Jylanki) managed to get a few games running:

Spy Fox
Pajama Sam
Curse of Monkey Island (demo)

All of them worked great, except for Curse of Monkey Island, which seems to have audio issues. Upon investigation, it seems like a custom audio engine called iMuse is used in this game. Either that, or the underlying audio API used in this old version of Emscripten could be causing the issue. Does anyone have any thoughts on this?

Thanks!

Floh

unread,
Dec 17, 2019, 3:41:28 PM12/17/19
to emscripten-discuss
If "audio issue" means that there simply is no audio, than the issue might be that the audio playback is blocked by browsers (at least Chrome is quite aggressive about this, with the original intent to block autoplaying videos and audio streams).

In Chrome you should see a message like this in the Javascript console:

cpc.js:53 The AudioContext was not allowed to start. It must be resumed (or created) after a user gesture on the page. https://goo.gl/7K7WLu

In my own WebAudio wrapper lib I'm using this "hack", which resumes the audio context on the first mouse, touch or key event:


Cheers,
-Floh.

Alex St. Louis

unread,
Dec 17, 2019, 4:29:13 PM12/17/19
to emscripten-discuss
I think that might be it. Here's a demo that you can try out btw:
Reply all
Reply to author
Forward
0 new messages