xnes icon indicating copy to clipboard operation
xnes copied to clipboard

SNEM Sound ?

Open GeoffreyPlitt opened this issue 12 years ago • 8 comments

Using -DSOUND with SNEM has errors because it seems to need the Allegro library. Please advise how to build SNEM with sound?

GeoffreyPlitt avatar May 25 '13 01:05 GeoffreyPlitt

I already tried snes9x with sound, and no luck. They said there is version which supports sound, but there is no sound on Chrome and FireFox: http://tjwei.github.io/xnes/sound4/snes9x.html

ociebieda avatar Oct 10 '14 19:10 ociebieda

I think this is because xnes use an outdated version of emscripten and some API have been changed, I will update the snes9x port when I have free time, perhaps in a month.

tjwei avatar Oct 13 '14 01:10 tjwei

Do you still plan to do this? It would be awesome.

Catarax avatar Jul 28 '15 15:07 Catarax

Just cloned the repo, attempting to build it, will see how it goes.

tjwei avatar Jul 29 '15 10:07 tjwei

Just remembered why I didn't fix this last year. emscripten changed a lot since then. It is going to take a while. Was too busy back then. Fortunately, I have some time to do this and other side projects. I am working on this, but it may take some effort, because the original one use various hacks to handle memory issues.

tjwei avatar Jul 30 '15 13:07 tjwei

snes9x port is updated with latest emscrpten (1.34). sound works.

tjwei avatar Aug 04 '15 14:08 tjwei

What about the WW2 version. Would it be possible to get sound with this? I will attempt to compile and see if I can get sound working. I got snes9x to compile last night but it took about 4 hours to get emscrpten squared away.

Great repo by the way.

RyanAveryBSU avatar Nov 10 '17 01:11 RyanAveryBSU

https://github.com/tjwei/pcsxjs uses webworker for emulation and sending sound to the main thread. The similar things can be done for WW2, but the result seems pretty much the same as of the single threaded version. The pcsxjs needs to use web worker so that it can utilize more cpu power. It seems that modern pc browser is capable of emulating snes in single thread. I think compiling to webasm is the right way to do.

tjwei avatar Nov 14 '17 13:11 tjwei