Just did an autoconvert using blackhornet's converter and then a couple manual changes to deal with grabbing files in C3 vs C2:
// case 0: flod_type="YM";flod = new music("YM");break; // removed From Base Source not needed now GTR
// case 1: flod_type="FLOD";flod = new music("FLOD");break;
case 0: flod_type="YM";flod = new music("YM",this.runtime);break; // removed From Base Source not needed now GTR
case 1: flod_type="FLOD";flod = new music("FLOD", this.runtime);break;[/code:fx9tuk7w]
in codef_music.js:
[code:fx9tuk7w]function music(type,runtimePass){
this.runtime = runtimePass;
var urlToRequest = this.runtime.getLocalFileUrl(zic);
if(typeof(AudioContext) != 'undefined'){
var fetch = new XMLHttpRequest();
fetch.open('GET', urlToRequest);
[/code:fx9tuk7w]
I'd like a better way to access runtime.getLocalFileUrl() in the other file/function, but passing through runtime as a separate parameter seemed to work.
I got the demo flod.capx to work in C3, using this, try it out, no guarantees, but good luck and let me know how it goes.
[url=https://kindeyegames.com/forumfiles/flodjs.c3addon]flodjs.c3addon[/url]