Project

General

Profile

Actions

Bug #235

open

Tracker player hangs on complex mod files.

Added by Brian Flanagan over 4 years ago. Updated over 4 years ago.

Status:
In Progress
Priority:
Normal
Target version:
-
Start date:
02/15/2020
Due date:
% Done:

0%

Estimated time:
Affected version:

Description

Try loading Dreamer's black_queen.mod file. (Not my style, but great for testing because of its complexity. We could try to repair it, or perhaps we should consider a different JavaScript player that is already more reliable. There are several open source players available that do not have this problem.

You can download the black_queen.mod track for testing here (Click on "Download" after you get there.): https://modarchive.org/index.php?request=view_by_moduleid&query=89637

I put that that modfile: black_queen.mod in the AMOSPro_Examples:Music folder in the default resources for testing. The following code will load and start to play the music, but it hangs after the first couple of bars.

#manifest:"amiga"
#speed:"safe"
#fps:false
Cls 0 : Pen 2 : Paper 0
Track Load "AMOSPro_Examples:Music/black_queen.mod",6
Print "Click mouse button to start music."
Print "Click again to exit AOZ." : Print
Print "(Track will play until window closed.)"
Repeat Until Mouse Key <> 0
Repeat Until Mouse Key = 0
Track Play 6,0
Repeat Until Mouse Key <> 0

These open source players work:

Bassoon Tracker: (the nicest one I've seen)
https://www.stef.be/bassoontracker/?file=https%3A%2F%2Fwww.stef.be%2Fbassoontracker%2Fapi%2Fmodules.pl%2F125

LibOpenMPT/ChipTune2:
The player at the modarchive.org which is based on libopenmpt and chiptune2.js also works fine.
Go to the link I gave for downloading the track, and instead of clicking "Download", click "Play with Online Player"
https://modarchive.org/index.php?request=view_by_moduleid&query=89637

AVOID THESE:

This one stutters a little at the beginning, but at least it doesn't hang like AOZ's or mod.haxor.fi's.
https://github.com/DhrBaksteen/ScripTracker
These hang on complex tracker files, just like AOZ's current tracker player.
https://mod.haxor.fi/Dreamer/mod.black_queen
https://med.planet-d.net/demo/web/modplayer/#black_queen.mod

NOT Tested:

https://med.planet-d.net/demo/web/modplayer/
https://github.com/jhalme/webaudio-mod-player
Playing Fastracker 2.XM files in JavaScript:
https://www.a1k0n.net/2015/11/09/javascript-ft2-player.html
Amiga .mod player using JavaScript and latest JavaScript APIs:
https://www.reddit.com/r/javascript/comments/9gkajs/amiga_mod_player_using_javascript_and_latest/
Actions

Also available in: Atom PDF