New method for looping OGGs needed (solved)

Solved: Spelling mistake.


Hey guys.


There are some tutorials around the forums as to how to loop ogg. files.


I'm not sure if something changed with MV, anyway, this method doesn't seem to work for MV anymore.



Any updates on this?

Regards
Very serious.Here's the prob man.


On rpg_core.js on line 7112


It's...wrong.


WebAudio.prototype._readMetaData = function(array, index, size) { for (var i = index; i < index + size - 10; i++) { if (this._readFourCharacters(array, i) === 'LOOP') { var text = ''; while (array > 0) { text += String.fromCharCode(array[i++]); } if (text.match(/LOOPSTART=([0-9]+)/)) { this._loopStart = parseInt(RegExp.$1); } if (text.match(/LOOPLENGTH=([0-9]+)/)) { this._loopLength = parseInt(RegExp.$1); } if (text == 'LOOPSTART' || text == 'LOOPLENGTH') { var text2 = ''; i += 16; while (array > 0) { text2 += String.fromCharCode(array[i++]); } if (text == 'LOOPSTART') { this._loopStart = parseInt(text2); } else { this._loopLength = parseInt(text2); } } } }};


So set the loop to 0.



rpg_core.js:7203 LOOPSTART set to 529137rpg_core.js:6990 onXhrLoad LS:529137 LL:0rpg_core.js:6998 onXhrLoad.onload LS:0 LL:77.12558333333334rpg_core.js:7035 _createNodes: LOOPSTART=0 LOOPLENGTH=77.12558333333334



 Like this






Make sure to spell the tag properly.




Try this forum post.There's some good info on this.
Could you describe in more detail what appears to be wrong with the loop and how you're currently looping music? Are you using a custom song or a base resource? I haven't had any issues looping music in MV and I do it my same old way, so I'm curious. 
Could you describe in more detail what appears to be wrong with the loop and how you're currently looping music? Are you using a custom song or a base resource? I haven't had any issues looping music in MV and I do it my same old way, so I'm curious. 

It's simple: The music start from the beginning instead of looping from the desired post.


Also @Bored Soul thanks for the info, I'll look into this thread.


EDIT: Please close this thread. I made a really stupid mistake, as it does still work. Like some other people, I misspelled length for lenght.

Original thread: https://forums.rpgmakerweb.com/threads/new-method-for-looping-oggs-needed-solved.61424/