Mod Archive Forums

Website => Help & Support => Feedback & Suggestions => Topic started by: Kasran on June 13, 2017, 04:30:18

Title: Online media player still not working
Post by: Kasran on June 13, 2017, 04:30:18
(Hi! First post. I'll introduce myself some other time.)

The online module player for Modarchive isn't working; it seems to load something, but hangs before playing any sound. For reference, I'm trying to listen to Skaven's Bejeweled III suite (https://modarchive.org/index.php?request=view_by_moduleid&query=179344). Judging by the error logged in Chrome's developer console, it appears to be a problem with libopenmpt or how it was compiled to Javascript:

Code: [Select]
Cannot enlarge memory arrays. Either (1) compile with  -s
TOTAL_MEMORY=X  with X higher than the current value 16777216, (2)
compile with  -s ALLOW_MEMORY_GROWTH=1  which adjusts the size at
runtime but prevents some optimizations, (3) set Module.TOTAL_MEMORY
to a higher value before the program runs, or if you want malloc to return
NULL (0) instead of this abort, compile with  -s ABORTING_MALLOC=0

The fix (https://modarchive.org/forums/index.php?topic=3912.msg14627#msg14627) that someone else posted about doesn't work; it just prints the same error again.

QUICK EDIT: Just tried Captured Sun (https://modarchive.org/index.php?request=view_by_moduleid&query=73928) and Autonomus (https://modarchive.org/index.php?request=view_by_moduleid&query=34290) (what can I say, I've been on a Skaven kick) and they're working fine, with nothing in the dev console except a warning about a deprecated method. So it seems some tracks work, but not others.
Title: Re: Online media player still not working
Post by: Saga Musix on June 13, 2017, 13:45:04
The fix from that thread is completely unrelated; the module you're trying to play simply requires too much memory to play. That cannot be fixed by a user script, the player needs to be recompiled to allow more memory to be used (in theory it should be set up to allow for dynamic memory allocation, I am not completely sure why that fails). You will have to listen to that particular file offline for now.
Title: Re: Online media player still not working
Post by: Saga Musix on June 13, 2017, 15:51:08
After recompiling, the file loads now, but you will only hear silence for now because the online player only plays the first subtune (which is a silent pattern). I might have to add a subtune selector to the player.
Edit: Subtune selection is now possible.
Title: Re: Online media player still not working
Post by: Nikku4211 on June 13, 2017, 23:57:59
Thank you. I hope the online HTML5 player works well on my Chrome browser running in Windows 10.